改名
This commit is contained in:
@@ -28,8 +28,7 @@ abstract class Pool extends Component
|
|||||||
public function initConnections($name, $isMaster = false, $max = 60)
|
public function initConnections($name, $isMaster = false, $max = 60)
|
||||||
{
|
{
|
||||||
$name = $this->name($name, $isMaster);
|
$name = $this->name($name, $isMaster);
|
||||||
if (isset($this->_items[$name]) &&
|
if (isset($this->_items[$name]) && $this->_items[$name] instanceof Channel) {
|
||||||
$this->_items[$name] instanceof Channel) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$this->_items[$name] = new Channel($max);
|
$this->_items[$name] = new Channel($max);
|
||||||
@@ -127,7 +126,7 @@ abstract class Pool extends Component
|
|||||||
{
|
{
|
||||||
$this->_items[$name]->push([time(), $client]);
|
$this->_items[$name]->push([time(), $client]);
|
||||||
unset($client);
|
unset($client);
|
||||||
$this->debug('release connect.' . $this->size($name));
|
$this->debug('release connect.' . $this->max . ':' . $this->size($name));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user