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

Manage sockets with a context manager

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.0
    • None
    • None
    • Fully Compatible

    Description

      Since PyMongo requires Python 2.6+, we can use Python with-statements context managers to avoid socket leaks in the face of exceptions.

      Attachments

        Activity

          People

            jesse@mongodb.com A. Jesse Jiryu Davis
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: