/** * @brief http client connection manager */ protected function _connectionManager() { if (!isset($this->_responseHeader['connection']) || $this->_responseHeader['connection'] != 'keep-alive') { $this->_objClient->close(); $this->_objClient = null; return; } //把对应的域名和端口对应的http长连接对象放入对象连接池 $key = $this->_host . ':' . $this->_port; $this->_free(); \Aha\Client\Pool::freeHttp($key, $this); }