public function onClose($serv, $fd) { Client::remove($fd); Trace::debug("Client: {$fd} Close."); }
public function __destruct() { Trace::debug("*********cli {$this->fd} __destruct"); if (isset($this->cli)) { $this->cli->isConnected() && $this->cli->close(); unset($this->cli); } unset($this->queue); }