diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-03-31 19:28:15 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-03-31 19:28:15 -0700 |
commit | af6aaa6a4fc7a6beb3b8ae5447eb6d30b1cd25cd (patch) | |
tree | 39252bfda45758c5cd9a6d7add06faf35fc9cfed /sockutils.c | |
parent | 866193649b3a560197e421cf84c772ed9640602f (diff) |
Turn off non-blocking mode on the socket we got from accept().
Doing WSAEventSelect() on a socket turns on non-blocking mode on that
socket. accept(), on a non-blocking socket, returns a non-blocking
socket and, if the listen socket is non-blocking because
WSAEventSelect() was done on it, returns a non-blocking socket *with
WSAEventSelect() in effect*, so you have to remove the events and then
turn off non-blocking mode.
Thanks, Microsoft.
Diffstat (limited to 'sockutils.c')
0 files changed, 0 insertions, 0 deletions