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

ReplicaSetConnection.close() doesn't close connection

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.1
    • Affects Version/s: 2.2
    • Component/s: None
    • None
    • Environment:
      CentOS, Python2.7, pymongo current release and master

      See: https://gist.github.com/92e4b1fd8485ab9008f7

      4 threads are run, each creating a ReplicaSetConnection to connect to a replica set with 2 secondaries and 1 master. Each hour, the threads reconnect by gc'ing the existing connection and creating a new one. mongodb shows the connection count rising, which causes an out of file-descriptor error after an extended period of time.

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            adam.midvidy Adam Midvidy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: