commit 1f26c5736949e1c3b57c024a315e33fc419f126e
Author: Alex Schultz <email address hidden>
Date: Fri Aug 2 08:20:56 2019 -0600
Cleanup session on delete
If an external http connection was not passed into the client, we
create one with a requests.Session() on our own. Once this is used,
it may still have an open socket when the connection is closed. We need
to handle the closing of the requests.Session() ourselves if we created
one. If you do not close it, a ResourceWarning may be reported about the
socket that is left open.
Reviewed: https:/ /review. opendev. org/674320 /git.openstack. org/cgit/ openstack/ python- swiftclient/ commit/ ?id=1f26c573694 9e1c3b57c024a31 5e33fc419f126e
Committed: https:/
Submitter: Zuul
Branch: master
commit 1f26c5736949e1c 3b57c024a315e33 fc419f126e
Author: Alex Schultz <email address hidden>
Date: Fri Aug 2 08:20:56 2019 -0600
Cleanup session on delete
If an external http connection was not passed into the client, we
create one with a requests.Session() on our own. Once this is used,
it may still have an open socket when the connection is closed. We need
to handle the closing of the requests.Session() ourselves if we created
one. If you do not close it, a ResourceWarning may be reported about the
socket that is left open.
Change-Id: I200ad0cdc8b799 9c3f5521b9a8221 22bd18714bf
Closes-Bug: #1838775