Revision 4ab1af1a
ID | 4ab1af1a1055e7b0685623d9274fd0e05366bd02 |
pool context manager, http pool AssertionError fix
Refs #3492
- Introduce a generic PooledObject class to act both
as a context manager for getting and putting back
an object from a pool.
- Implement a class PooledHTTPConnection(PooledObject)
as a sublcass of the one in (1)
- Eliminate httplib.HTTPConnection patching of close().
Eliminate put/get_http_connection.
The httplib.HTTPConnection object is no longer released
back to the pool via a method on it.
One must explicitly put it to the pool,
or use the PooledObject context manager in (2) above.
- Update lib.astakos, lib.quotaholder.http,
synnefo.api.delegate, pithos.api.delegate to use
PooledHTTPConnection.
- Update tests
Files
- added
- modified
- copied
- renamed
- deleted