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:
parent
8f5738299a
commit
888b030bae
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue