ReplicaSetConnection.close() doesn't close connection

XMLWordPrintableJSON

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

      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 Hackett
            Reporter:
            Adam Midvidy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: