From: Mark Likness Date: Thu, 15 Oct 2015 13:21:06 +0000 (+0800) Subject: allow EAGAIN and friends on straight read X-Git-Tag: upstream/1.7.3~337 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dbe624de7645b515a71ea59004f12131b3d296b5;p=platform%2Fupstream%2Flibwebsockets.git allow EAGAIN and friends on straight read --- diff --git a/lib/output.c b/lib/output.c index f375f0e..728dada 100644 --- 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; }