You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Ben Steffensmeier (JIRA)" <ji...@apache.org> on 2017/02/28 19:20:45 UTC

[jira] [Created] (QPID-7688) SSL connections leak file descriptors

Ben Steffensmeier created QPID-7688:
---------------------------------------

             Summary: SSL connections leak file descriptors
                 Key: QPID-7688
                 URL: https://issues.apache.org/jira/browse/QPID-7688
             Project: Qpid
          Issue Type: Bug
          Components: C++ Client
    Affects Versions: 0.32
         Environment: Linux CentOS 7 x86_64
            Reporter: Ben Steffensmeier


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:
{code}
prototype = SSL_ImportFD(0, PR_NewTCPSocket());
{code}
The resulting descriptor is never closed.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org