[CDRIVER-2081] Use select() on Windows Created: 08/Mar/17 Updated: 12/Sep/17 Resolved: 24/Aug/17 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | libmongoc, network |
| Affects Version/s: | None |
| Fix Version/s: | 1.8.0 |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | A. Jesse Jiryu Davis | Assignee: | A. Jesse Jiryu Davis |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
It would let us detect failed connections immediately, instead of waiting for the connect timeout (10 seconds) or, much worse, the socket timeout when we lose an established connection (5 minutes). https://daniel.haxx.se/blog/2012/10/10/wsapoll-is-broken/ |
| Comments |
| Comment by Ramon Fernandez Marina [ 12/Sep/17 ] |
|
Author: {'username': u'ajdavis', 'name': u'A. Jesse Jiryu Davis', 'email': u'jesse@mongodb.com'}Message: WSAPoll doesn't detect connection resets, and forces us to wait for a daniel.haxx.se/blog/2012/10/10/wsapoll-is-broken |
| Comment by A. Jesse Jiryu Davis [ 29/Jun/17 ] |
|
No Bernie, that limit isn't on Windows. I'll consider a config check for using select if "poll" is absent. |
| Comment by Bernie Hackett [ 08/Mar/17 ] |
|
Do you have to worry about processes that have > 1023 open file descriptors? If yes, select is a problem. |