\Psc\Library\Net\Http\ClientConnectionPool

Summary

Methods
Properties
Constants
__construct()
__destruct()
pullConnection()
pushConnection()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
registerForkHandler()
clearConnectionPool()
$busySSL
$busyTCP
$idleSSL
$idleTCP
$listenEventMap
$forkEventId
N/A

Properties

$busySSL

$busySSL : array

Type

array

$busyTCP

$busyTCP : array

Type

array

$idleSSL

$idleSSL : array

Type

array

$idleTCP

$idleTCP : array

Type

array

$listenEventMap

$listenEventMap : array

Type

array

$forkEventId

$forkEventId : int

Type

int

Methods

__construct()

__construct() : mixed

Returns

mixed —

__destruct()

__destruct() : mixed

Returns

mixed —

pullConnection()

pullConnection(string  $host, int  $port, bool  $ssl = false) : \Psc\Core\Coroutine\Promise<\Psc\Library\Net\Http\Client\Connection>

Parameters

string $host
int $port
bool $ssl

Returns

\Psc\Core\Coroutine\Promise<\Psc\Library\Net\Http\Client\Connection> —

pushConnection()

pushConnection(\Psc\Library\Net\Http\Client\Connection  $connection, bool  $ssl) : void

Parameters

\Psc\Library\Net\Http\Client\Connection $connection
bool $ssl

registerForkHandler()

registerForkHandler() : void

clearConnectionPool()

clearConnectionPool() : void

通过关闭所有空闲和繁忙的连接来清除连接池。