[CXX-129] Initialize WinSock using mongo initializer Created: 10/Mar/14 Updated: 04/May/14 Resolved: 22/Apr/14 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | legacy-0.8.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Eric Milkie | Assignee: | Mira Carey |
| Resolution: | Done | Votes: | 0 |
| Labels: | legacy-cxx, windows | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| 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. |
| Comments |
| Comment by Githook User [ 22/Apr/14 ] |
|
Author: {u'username': u'hanumantmk', u'name': u'Jason Carey', u'email': u'hanumantmk@gmail.com'}Message: Merge pull request #57 from hanumantmk/ WSAStartup in an init, cleanup in client::shutdown |
| Comment by Mira Carey [ 22/Apr/14 ] |
| Comment by Andrew Morrow (Inactive) [ 07/Apr/14 ] |
|
Pulling into legacy-0.8 as we are planning to do a round of windows improvements as part of that release and it would be nice to fix this as part of that effort. |
| Comment by Eric Milkie [ 10/Mar/14 ] |
|
Also consider calling WSACleanup() as part of client shutdown, after all network operations have ceased. |