[Bug 1470860] [NEW] requests functional API won't close sockets
Roman Podoliaka
rpodolyaka+bugs at mirantis.com
Thu Jul 2 13:34:54 UTC 2015
Public bug reported:
Upstream issue: https://github.com/kennethreitz/requests/issues/1882
How to reproduce:
import requests
def make_request():
resp = requests.get('http://google.com')
resp.close() # this appears to have no effect, even though the function exists
make_request()
This may result in possible FDs leakage and breaks OpenStack Nova unit tests (nova.tests.unit.test_wsgi.TestWSGIServerWithSSL.test_app_using_ipv6_and_ssl) when 14.04 version of python-requests is used.
The commit fixing the issue: https://github.com/ContinuousFunction/requests/commit/c0e927c52b8f049d6aa816360780580173871ac6
** Affects: requests (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to requests in Ubuntu.
https://bugs.launchpad.net/bugs/1470860
Title:
requests functional API won't close sockets
Status in requests package in Ubuntu:
New
Bug description:
Upstream issue: https://github.com/kennethreitz/requests/issues/1882
How to reproduce:
import requests
def make_request():
resp = requests.get('http://google.com')
resp.close() # this appears to have no effect, even though the function exists
make_request()
This may result in possible FDs leakage and breaks OpenStack Nova unit tests (nova.tests.unit.test_wsgi.TestWSGIServerWithSSL.test_app_using_ipv6_and_ssl) when 14.04 version of python-requests is used.
The commit fixing the issue: https://github.com/ContinuousFunction/requests/commit/c0e927c52b8f049d6aa816360780580173871ac6
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/requests/+bug/1470860/+subscriptions
More information about the foundations-bugs
mailing list