Avoid double releasing chunked upload connections

Resolves #2636
This commit is contained in:
Cory Benfield
2015-06-13 08:10:53 +01:00
parent 8b5e457b75
commit 2e62df456a
-3
View File
@@ -407,9 +407,6 @@ class HTTPAdapter(BaseAdapter):
# Then, reraise so that we can handle the actual exception.
low_conn.close()
raise
else:
# All is well, return the connection to the pool.
conn._put_conn(low_conn)
except (ProtocolError, socket.error) as err:
raise ConnectionError(err, request=request)