Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-787

thread safety issue -- openssl initialization

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: proton-0.8
    • Fix Version/s: None
    • Component/s: proton-c
    • Labels:
    • Environment:
      unix

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jmspring Jim Spring
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: