Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-7688

SSL connections leak file descriptors

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 0.32
    • Fix Version/s: None
    • Component/s: C++ Client
    • Labels:
    • Environment:

      Linux CentOS 7 x86_64

      Description

      When using a c++ client, each time a connection is attempted with ssl an extra socket is created that is not closed. This can cause the process to exceed the maximum number of file descriptors allowed which results in a crash in the qpid library.

      This problem is especially obvious when the connection fails, because each retry results in leaking another descriptor.

      The extra socket is created in the SslSocket constructor on this line:

      prototype = SSL_ImportFD(0, PR_NewTCPSocket());
      

      The resulting descriptor is never closed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                bsteffen Ben Steffensmeier
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: