Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1555

SSL connections can leak sockets

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.0
    • Affects Version/s: 1.3.0, 1.4.1
    • Component/s: libmongoc, tls
    • None
    • Environment:
      Windows 2007, Visual Studio 2010
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When an SSL-enabled mongoc_client_t attempts to communicate to a mongod listening on an unsecure socket it leaks one socket per request.

      Calling mongoc_client_destroy to clean up the mongoc_client_t does not clean up the sockets. Exiting the applications is the only way to free the sockets.

      Steps to reproduce:

      • Configure mongod to listen on an unsecure port.
      • Configure a mongoc application to communicate with mongod, attempting to use an SSL connection.
      • Run the application
      • Run 'netstat -b' to observe the increasing number of established socket connections that never close.

            Assignee:
            bjori Hannes Magnusson (Inactive)
            Reporter:
            john.becker John Becker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: