Overview

Namespaces

  • PHPFastCGI
    • FastCGIDaemon
      • Command
      • Connection
      • ConnectionHandler
      • Exception
      • Http

Classes

  • StreamSocketConnection
  • StreamSocketConnectionPool

Interfaces

  • ConnectionInterface
  • ConnectionPoolInterface
  • Overview
  • Namespace
  • Class

Interface ConnectionPoolInterface

Objects implementing the ConnectionPoolInterface pass incoming connections off to ConnectionHandler instances that have been created from a connection handler factory.

Direct known implementers

PHPFastCGI\FastCGIDaemon\Connection\StreamSocketConnectionPool
Namespace: PHPFastCGI\FastCGIDaemon\Connection
Located at Connection/ConnectionPoolInterface.php
Methods summary
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
public
# shutdown( )

Shutdown the connection pool cleanly. Usually triggered following a SIGINT.

Shutdown the connection pool cleanly. Usually triggered following a SIGINT.

API documentation generated by ApiGen