[Bug 1470860] Re: requests functional API won't close sockets

Thomas Goirand thomas at goirand.fr
Tue Aug 25 07:25:09 UTC 2015


Hi. FYI, I have the same issue when building the package for Debian.

** Changed in: requests (Ubuntu)
       Status: New => Confirmed

-- 
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:
  Confirmed

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