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

thread safety issue -- openssl initialization

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • proton-0.8
    • None
    • proton-c
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: