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:
a637d8f
)
client: use right state machine
author
Boutoukoat
<pierre@user.github.invalid.com>
Wed, 28 Jun 2017 14:25:57 +0000
(22:25 +0800)
committer
Andy Green
<andy@warmcat.com>
Wed, 28 Jun 2017 14:25:57 +0000
(22:25 +0800)
https://github.com/warmcat/libwebsockets/issues/951
lib/client.c
patch
|
blob
|
history
diff --git
a/lib/client.c
b/lib/client.c
index
0af13aa
..
4bb37cb
100755
(executable)
--- a/
lib/client.c
+++ b/
lib/client.c
@@
-42,7
+42,12
@@
lws_handshake_client(struct lws *wsi, unsigned char **buf, size_t len)
return 0;
}
if (wsi->u.ws.rx_draining_ext) {
- m = lws_rx_sm(wsi, 0);
+#if !defined(LWS_NO_CLIENT)
+ if (wsi->mode == LWSCM_WS_CLIENT)
+ m = lws_client_rx_sm(wsi, 0);
+ else
+#endif
+ m = lws_rx_sm(wsi, 0);
if (m < 0)
return -1;
continue;