1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

windows: POLLHUP is or-ed on other events

https://github.com/warmcat/libwebsockets/issues/1054
This commit is contained in:
Andy Green 2017-10-15 12:24:24 +08:00
parent c83afc66e6
commit 1799b02a43

View file

@ -258,9 +258,8 @@ _lws_plat_service_tsi(struct lws_context *context, int timeout_ms, int tsi)
networkevents.iErrorCode[FD_CONNECT_BIT] != WSAEINVAL) {
lwsl_debug("Unable to connect errno=%d\n",
networkevents.iErrorCode[FD_CONNECT_BIT]);
pfd->revents = LWS_POLLHUP;
} else
pfd->revents = (short)networkevents.lNetworkEvents;
pfd->revents |= LWS_POLLHUP;
}
if (pfd->revents & LWS_POLLOUT) {
wsi = wsi_from_fd(context, pfd->fd);