Revision 9557ea30
ID | 9557ea3043ce7f51e7bdb40a78feca02549e0c5c |
Fix duplicate return of HTTP connection into pool
Fix duplicate return of HTTP connection into pool on duplicate
invocation of conn.close().
Revert commit b9c834003, and make sure a connection object's _pool
attribute is re-initialized whenever it is retrieved from the pool.
For the time being, this is done in _pool_verify().
Also introduce distinct HTTP connection pools for every
(scheme, netloc) combination. The previous code would fail if a
user attempted to get_http_connection() both for "http://host" and
for "https://host", reusing the same pool for both.
Files
- added
- modified
- copied
- renamed
- deleted