Skip to content

Commit

Permalink
恢复原状
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanglei5 committed Nov 6, 2014
1 parent 6118c8e commit 6455bf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/DBPool/client.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function query($sql) {
$this->config['send_data'] = $data;
$this->cli = new Client($this->config);
$this->cli->connect();
$this->cli->send($data);
// $this->cli->send($data);
/*
panduan:
if ($this->cli->isConnected()) {
Expand Down
3 changes: 1 addition & 2 deletions src/DBPool/db_server.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ public function onReceive( swoole_server $serv, $fd, $from_id, $data ) {
}
} else {
$data = array('fd' => $fd,'send_data' => $data);
$this->serv->send($fd, "new connection \n");
echo "{$fd} {$from_id} new connection , receive data:".$data['data']."\n";
echo "{$fd} {$from_id} new connection , receive data:".json_encode($data['send_data'])."\n";
$this->serv->task(json_encode($data));
}
}
Expand Down

0 comments on commit 6455bf4

Please sign in to comment.