Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-343

Explicitly close sockets

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.2
    • Affects Version/s: None
    • Component/s: None
    • None

      When an instance of Pool.pool is deallocated we should be explicitly closing any sockets currently in the pool. This isn't a huge issue in CPython since sockets are implicitly closed but can cause problems with other interpreters (I'm looking closely at you Jython...). Python3.2 and newer raise ResourceWarning related to this in unittests.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: