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:
f3e9c73
)
recv treat zero return as error
author
Justin Chen
<justinchen00@github.invalid.com>
Thu, 14 Apr 2016 13:40:53 +0000
(21:40 +0800)
committer
Andy Green
<andy@warmcat.com>
Fri, 15 Apr 2016 05:58:24 +0000
(13:58 +0800)
https://github.com/warmcat/libwebsockets/issues/475
lib/output.c
patch
|
blob
|
history
diff --git
a/lib/output.c
b/lib/output.c
index
9edc28f
..
420146f
100644
(file)
--- a/
lib/output.c
+++ b/
lib/output.c
@@
-630,7
+630,7
@@
lws_ssl_capable_read_no_ssl(struct lws *wsi, unsigned char *buf, int len)
int n;
n = recv(wsi->sock, (char *)buf, len, 0);
- if (n >
=
0)
+ if (n > 0)
return n;
#if LWS_POSIX
if (LWS_ERRNO == LWS_EAGAIN ||