Initialize WinSock using mongo initializer

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • legacy-0.8.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Right now, WSAStartup is called as part of a global object in sock.cpp. This can be subject to odd race conditions since it's hard to control when this happens at runtime.
      It should be switched to a MONGO_INITIALIZER so that a driver consumer can control when and if that function is called (as part of mongo::client::init), especially if the C++ driver DLL is dynamically activated at run-time.

              Assignee:
              Mira Carey
              Reporter:
              Eric Milkie
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: