projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc6c274
)
allow EAGAIN and friends on straight read
author
Mark Likness
<likness@gmail.com>
Thu, 15 Oct 2015 13:21:06 +0000
(21:21 +0800)
committer
Andy Green
<andy.green@linaro.org>
Thu, 15 Oct 2015 13:21:06 +0000
(21:21 +0800)
lib/output.c
patch
|
blob
|
history
diff --git
a/lib/output.c
b/lib/output.c
index
f375f0e
..
728dada
100644
(file)
--- a/
lib/output.c
+++ b/
lib/output.c
@@
-581,6
+581,11
@@
lws_ssl_capable_read_no_ssl(struct libwebsocket_context *context,
if (n >= 0)
return n;
+ if (LWS_ERRNO == LWS_EAGAIN ||
+ LWS_ERRNO == LWS_EWOULDBLOCK ||
+ LWS_ERRNO == LWS_EINTR)
+ return LWS_SSL_CAPABLE_MORE_SERVICE;
+
lwsl_warn("error on reading from skt\n");
return LWS_SSL_CAPABLE_ERROR;
}