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

SSL connections can leak sockets

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.5.0
    • 1.3.0, 1.4.1
    • libmongoc, tls
    • None
    • Windows 2007, Visual Studio 2010

    Description

      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.

      Attachments

        Activity

          People

            bjori Hannes Magnusson
            john.becker John Becker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: