A simple connection pool.
Calling start_request() acquires a greenlet-local socket, which is returned to the pool when the greenlet calls end_request() or dies.
A simple connection pool.
Calling start_request() acquires a thread-local socket, which is returned to the pool when the thread calls end_request() or dies.
A context manager returned by Connection.start_request(), so you can do with connection.start_request(): do_something() in Python 2.5+.
Store a socket with some metadata