mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
handle any POLLIN before error
See if this can impact http://libwebsockets.org/trac/ticket/16 Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
22524a65a2
commit
c9ac31ee1c
1 changed files with 2 additions and 1 deletions
|
@ -932,7 +932,8 @@ libwebsocket_service_fd(struct libwebsocket_context *context,
|
|||
|
||||
/* handle session socket closed */
|
||||
|
||||
if (pollfd->revents & (POLLERR | POLLHUP)) {
|
||||
if ((!pollfd->revents & POLLIN) &&
|
||||
(pollfd->revents & (POLLERR | POLLHUP))) {
|
||||
|
||||
lwsl_debug("Session Socket %p (fd=%d) dead\n",
|
||||
(void *)wsi, pollfd->fd);
|
||||
|
|
Loading…
Add table
Reference in a new issue