Class StreamSocketConnectionPool
The default implementation of the ConnectionPoolInterface using stream
sockets.
-
PHPFastCGI\FastCGIDaemon\Connection\StreamSocketConnectionPool
implements
PHPFastCGI\FastCGIDaemon\Connection\ConnectionPoolInterface
Methods summary
public
|
#
__construct( resource $socket )
Constructor.
Parameters
- $socket
- The stream socket to accept connections from
|
public
|
#
operate( PHPFastCGI\FastCGIDaemon\ConnectionHandler\ConnectionHandlerFactoryInterface $connectionHandlerFactory, float $timeoutLoop )
Uses the connection handler factory to instantiate connection handlers
when new connections are made to the connection pool. Monitors current
connections and triggers them when read operations will not block.
Uses the connection handler factory to instantiate connection handlers
when new connections are made to the connection pool. Monitors current
connections and triggers them when read operations will not block.
Parameters
- $connectionHandlerFactory
- The factory used to create connection handlers
- $timeoutLoop
- The timeout value to use when waiting for activity on incoming connections
Implementation of
|
public
|
#
shutdown( )
Shutdown the connection pool cleanly. Usually triggered following a
SIGINT.
Shutdown the connection pool cleanly. Usually triggered following a
SIGINT.
Implementation of
|