libwebsocket_service_fd: EAGAIN is harmless, treat like EINTR
Only tested on linux. Signed-off-by: Alon Levy <alevy@redhat.com>
This commit is contained in:
parent
0291eb3b95
commit
dc93b7f2e7
1 changed files with 1 additions and 1 deletions
|
@ -1993,7 +1993,7 @@ bail3:
|
|||
if (eff_buf.token_len < 0) {
|
||||
fprintf(stderr, "Socket read returned %d\n",
|
||||
eff_buf.token_len);
|
||||
if (errno != EINTR)
|
||||
if (errno != EINTR && errno != EAGAIN)
|
||||
libwebsocket_close_and_free_session(context,
|
||||
wsi, LWS_CLOSE_STATUS_NOSTATUS);
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue