projects
/
profile
/
ivi
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01211a1
)
libwebsocket_service_fd: EAGAIN is harmless, treat like EINTR
29/2829/1
author
Alon Levy
<alevy@redhat.com>
Fri, 19 Oct 2012 09:21:57 +0000
(11:21 +0200)
committer
Kevron Rees
<kevron_m_rees@linux.intel.com>
Thu, 7 Mar 2013 21:01:21 +0000
(13:01 -0800)
Only tested on linux.
Signed-off-by: Alon Levy <alevy@redhat.com>
lib/libwebsockets.c
patch
|
blob
|
history
diff --git
a/lib/libwebsockets.c
b/lib/libwebsockets.c
index
9b22842
..
ee393a8
100644
(file)
--- a/
lib/libwebsockets.c
+++ b/
lib/libwebsockets.c
@@
-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;