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

windows: fix io hang after large deflate frame

Fix I/O hang after received a large deflate frame
This commit is contained in:
shinny-chengzhi 2018-07-09 17:33:10 +08:00 committed by Andy Green
parent 8f5738299a
commit 888b030bae

View file

@ -316,8 +316,10 @@ _lws_plat_service_tsi(struct lws_context *context, int timeout_ms, int tsi)
if (pfd->revents & LWS_POLLHUP)
--eIdx;
if (pfd->revents)
if (pfd->revents) {
recv(pfd->fd, NULL, 0, 0);
lws_service_fd_tsi(context, pfd, tsi);
}
}
}