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:
e7d8e20
)
autobahn requires zero length rx allowed
author
Andy Green
<andy.green@linaro.org>
Mon, 28 Dec 2015 03:11:55 +0000
(11:11 +0800)
committer
Andy Green
<andy.green@linaro.org>
Mon, 28 Dec 2015 03:12:05 +0000
(11:12 +0800)
We suppress zero length rx from getting to userland, but autobahn
requires it... oh well.
Signed-off-by: Andy Green <andy.green@linaro.org>
lib/client-parser.c
patch
|
blob
|
history
diff --git
a/lib/client-parser.c
b/lib/client-parser.c
index
90f9107
..
12096a4
100644
(file)
--- a/
lib/client-parser.c
+++ b/
lib/client-parser.c
@@
-383,12
+383,11
@@
ping_drop:
LWS_SEND_BUFFER_PRE_PADDING];
eff_buf.token_len = wsi->u.ws.rx_user_buffer_head;
- if (lws_ext_cb_wsi_active_exts(wsi,
- LWS_EXT_CALLBACK_PAYLOAD_RX,
- &eff_buf, 0) < 0) /* fail */
+ if (lws_ext_cb_wsi_active_exts(wsi, LWS_EXT_CALLBACK_PAYLOAD_RX,
+ &eff_buf, 0) < 0) /* fail */
return -1;
- if (eff_buf.token_len <
=
0 &&
+ if (eff_buf.token_len < 0 &&
callback_action != LWS_CALLBACK_CLIENT_RECEIVE_PONG)
goto already_done;