Utilities to manage open connections.
Class which manages HTTPConnection objects.
This is for connections which are being kept-alive for follow-up requests.
Return the current number of connections.
Includes any in the readable list or registered with the selector, minus one for the server socket, which is always registered with the selector.
Flag whether it is allowed to add a new keep-alive connection.
Close all monitored connections.
Expire least recently used connections.
This happens if there are either too many open connections, or if the connections have been timed out.
This should be called periodically.
Return a HTTPConnection object which is ready to be handled.
A connection returned by this method should be ready for a worker to handle it. If there are no connections ready, None will be returned.
Any connection returned by this method will need to be
putback if it should be examined again for another request.
HTTPConnection instance, or None
- Return type
Mark the given socket fd as non-inheritable (POSIX).