Files
tor/changes
Nick Mathewson 44514058b9 Correctly handle fd-drain errors on windows workqueues
Windows doesn't let you check the socket error for a socket with
WSAGetLastError() and getsockopt(SO_ERROR).  But
getsockopt(SO_ERROR) clears the error on the socket, so you can't
call it more than once per error.

When we introduced recv_ni to help drain alert sockets, back in
0.2.6.3-alpha, we had the failure path for recv_ni call getsockopt()
twice, though: once to check for EINTR and one to check for EAGAIN.
Of course, we never got the eagain, so we treated it as an error,
and warned about: "No error".

The fix here is to have these functions return -errno on failure.

Fixes bug 21540; bugfix on 0.2.6.3-alpha.
2017-03-15 12:16:17 -04:00
..
2016-11-07 16:19:05 -05:00
2017-02-01 10:39:48 -05:00
2016-11-06 16:39:46 -05:00
2016-10-31 15:05:56 -04:00
2016-11-06 16:39:46 -05:00
2016-11-06 16:39:46 -05:00
2016-11-07 11:01:21 -05:00
2016-11-16 13:14:03 +11:00
2016-12-01 10:14:42 -05:00
2016-12-23 08:08:14 -05:00
2017-02-07 09:27:17 -05:00
2017-01-22 18:48:22 -05:00
2016-10-18 19:35:10 -04:00