Jim Spring created PROTON-787:
---------------------------------

             Summary: thread safety issue -- openssl initialization
                 Key: PROTON-787
                 URL: https://issues.apache.org/jira/browse/PROTON-787
             Project: Qpid Proton
          Issue Type: Bug
          Components: proton-c
    Affects Versions: 0.8
         Environment: unix
            Reporter: Jim Spring
            Priority: Minor


Doing multiple calls to pn_messenger_subscribe can potentially end up in 
simultaneous calls to pn_ssl_globals_init which calls into openssl which is not 
thread safe.

One fix is to explicitly serialize calls (my current approach).

One other fix - allow for an initial "proton_init" type call that includes 
openssl initialization.  Which is called before usage of the library.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to