Skip to content
Myr

Avoid double releasing chunked upload connections

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Resolves #2636

authored by Cory Benfield · committed by Cory Benfield · parent 8b5e457 · Browse files · 1 file+0 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+0 added−3 removed

  • other:+0 added−3 removed

1 file+0 added−3 removed

modified:requests/adapters.py-3 removed
405 unmodified lines
406 # If we hit any problems here, clean up the connection.407 # Then, reraise so that we can handle the actual exception.408 low_conn.close()409 raise410 else:411 # All is well, return the connection to the pool.412 conn._put_conn(low_conn)410411 except (ProtocolError, socket.error) as err:412 raise ConnectionError(err, request=request)413
21 unmodified lines