Description
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.