4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-13 12:39:22 +08:00
Corinna Vinschen aa3fae18d6 Cygwin: select: Fix FD_CLOSE handling
An FD_CLOSE event sets a socket descriptor ready for writing.
This is incorrect if the FD_CLOSE is a result of shutdown(SHUT_RD).
Only set the socket descriptor ready for writing if the FD_CLOSE
is indicating an connection abort or reset error condition.

This requires to tweak fhandler_socket_wsock::evaluate_events.
FD_CLOSE in conjunction with FD_ACCEPT/FD_CONNECT special cases
a shutdown condition by setting an error code.  This is correct
for accept/connect, but not for select.  In this case, make sure
to return with an error code only if FD_CLOSE indicates a
connection error.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-04-07 10:43:09 -04:00
..
2021-03-31 11:09:42 -04:00
2020-10-14 10:54:21 -04:00
2020-10-14 10:54:29 -04:00
2016-06-25 00:43:01 +02:00
2020-10-14 10:54:03 -04:00
2020-10-14 10:54:03 -04:00
2021-03-31 11:37:29 -04:00
2021-02-01 12:16:54 -05:00
2018-02-20 17:59:53 +01:00
2021-02-01 12:16:54 -05:00
2020-10-14 10:54:29 -04:00
2020-10-19 17:54:55 -04:00
2017-03-27 22:03:58 +01:00
2015-08-17 11:05:43 +02:00
2020-12-07 14:08:38 -05:00
2020-10-14 10:54:29 -04:00
2018-04-16 22:46:11 -05:00
2020-10-14 10:54:29 -04:00
2020-10-14 10:53:55 -04:00
2020-10-14 10:53:55 -04:00