Details
-
Improvement
-
Resolution: Done
-
Major - P3
-
None
-
None
Description
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.