Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-129

Initialize WinSock using mongo initializer

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • legacy-0.8.0
    • Affects Version/s: None
    • Component/s: 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@mongodb.com Mira Carey
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: