You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "Jim Spring (JIRA)" <ji...@apache.org> on 2014/12/21 05:12:13 UTC
[jira] [Commented] (PROTON-787) thread safety issue -- openssl
initialization
[ https://issues.apache.org/jira/browse/PROTON-787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14255039#comment-14255039 ]
Jim Spring commented on PROTON-787:
-----------------------------------
Note - I have seen other simultaneous calls to pn_messenger_send/put result in similar behavior.
> 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)