Revision 5607fc6c snf-common/synnefo/lib/pool/http.py
b/snf-common/synnefo/lib/pool/http.py | ||
---|---|---|
102 | 102 |
conn._pool_use_counter -= 1 |
103 | 103 |
|
104 | 104 |
# see httplib source for connection states documentation |
105 |
if (conn._pool_use_counter > 0 and
|
|
106 |
conn._HTTPConnection__state == 'Idle'):
|
|
105 |
conn_state = conn._HTTPConnection__state
|
|
106 |
if (conn._pool_use_counter > 0 and conn_state == "Idle"):
|
|
107 | 107 |
try: |
108 | 108 |
conn.getresponse() |
109 | 109 |
except ResponseNotReady: |
Also available in: Unified diff