| ... | ... | @@ -85,7 +85,9 @@ class ProxyService | 
|  |  |  | 
|  |  | //监听连接关闭事件。 | 
|  |  | $server->on('Close', function ($server, $fd) { | 
|  |  | echo '连接关闭了 => '.$fd."\n"; | 
|  |  | if(!empty($this->clients[$fd])) { | 
|  |  | echo '关闭连接 => ' . $fd . " 剩余 ".count($this->clients)." 个链接\n"; | 
|  |  | } | 
|  |  | $this->clients[$fd] = null; | 
|  |  | unset($this->clients[$fd]); | 
|  |  | }); | 
... | ... |  |