[SERVER-8612] Windows sockets overflow fd_set Created: 19/Feb/13 Updated: 11/Jul/16 Resolved: 21/Feb/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Networking |
| Affects Version/s: | 2.4.0-rc0 |
| Fix Version/s: | 2.4.0-rc1 |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Eric Milkie | Assignee: | Eric Milkie |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows |
||
| Issue Links: |
|
||||||||
| Operating System: | Windows | ||||||||
| Participants: | |||||||||
| Description |
|
On Windows, I set FD_SETSIZE to 1024. However, this is not large enough, and it's hard to say how large we need to set it other than going with 32767. The socket() function does not necessarily return numbers in sequential order like on Unix. |
| Comments |
| Comment by auto [ 26/Feb/13 ] |
|
Author: {u'date': u'2013-02-22T10:07:30Z', u'name': u'Tad Marshall', u'email': u'tad@10gen.com'}Message: |
| Comment by auto [ 21/Feb/13 ] |
|
Author: {u'date': u'2013-02-15T14:46:25Z', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}Message: On Windows, socket() can return any SOCKET value, not just a small, incrementing |
| Comment by Eric Milkie [ 19/Feb/13 ] |
|
Going to try using AcceptEx() and WaitForSingleObject(), which should be supported on all Windowses. |