After Ondraco
https://github.com/warmcat/libwebsockets/issues/441
Signed-off-by: Andy Green <andy.green@linaro.org>
close the keepalive, we retained ah for the lifetime of the keepalive,
using up the pool.
+8) MAJOR windows-only-POLLHUP was not coming
+
Changes
-------
pt->fds[pt->fds_count++].revents = 0;
pt->events[pt->fds_count] = WSACreateEvent();
- WSAEventSelect(wsi->sock, pt->events[pt->fds_count], LWS_POLLIN);
+ WSAEventSelect(wsi->sock, pt->events[pt->fds_count],
+ LWS_POLLIN | LWS_POLLHUP);
}
LWS_VISIBLE void