diff options
author | Marc Hoersken <info@marc-hoersken.de> | 2013-04-06 23:09:50 +0200 |
---|---|---|
committer | Marc Hoersken <info@marc-hoersken.de> | 2013-04-06 23:09:50 +0200 |
commit | 4e2ed01a2e7e6995ce96d93ede5f800aea8d1698 (patch) | |
tree | eccf915bc3648deea2bf8f40bb5ac1d4dddc9a06 /lib/Makefile.am | |
parent | ae4558dbb479f09ea01164b1a0d4ac54ec88b29c (diff) |
sockfilt.c: Fixed detection of client-side connection close
WINSOCK only:
Since FD_CLOSE is only signaled once, it may trigger at the same
time as FD_READ. Data actually being available makes it impossible
to detect that the connection was closed by checking that recv returns
zero. Another recv attempt could block the connection if it was
not closed. This workaround abuses exceptfds in conjunction with
readfds to signal that the connection has actually closed.
Diffstat (limited to 'lib/Makefile.am')
0 files changed, 0 insertions, 0 deletions