inappropriate use of sasl_client_init and sasl_client_done

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.2-beta0
    • Affects Version/s: 1.1.0
    • Component/s: auth, libmongoc
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      sasl_client_init() and sasl_client_done() are supposed to be global load/unload functions. We call them for each sasl connection we initialize, which seems wrong.

      Also, sasl_client_init() and done() aren't thread safe... We should probably be running those in the driver init() / cleanup(). Also, take a look at whether we need sasl_set_mutex().

              Assignee:
              A. Jesse Jiryu Davis
              Reporter:
              Mira Carey
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: