aboutsummaryrefslogtreecommitdiff
path: root/src/tool_formparse.h
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2013-04-06 23:09:50 +0200
committerMarc Hoersken <info@marc-hoersken.de>2013-04-06 23:09:50 +0200
commit4e2ed01a2e7e6995ce96d93ede5f800aea8d1698 (patch)
treeeccf915bc3648deea2bf8f40bb5ac1d4dddc9a06 /src/tool_formparse.h
parentae4558dbb479f09ea01164b1a0d4ac54ec88b29c (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 'src/tool_formparse.h')
0 files changed, 0 insertions, 0 deletions