Hprose\Swoole\Socket\Transporter::close PHP Method

close() public method

public close ( )
    public function close()
    {
        foreach ($this->pool as $conn) {
            if (isset($conn->timer)) {
                swoole_timer_clear($conn->timer);
                unset($conn->timer);
            }
            if ($conn->isConnected()) {
                $conn->close();
            }
        }
    }