aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-ws.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-04-10 12:00:14 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-04-10 12:00:14 +0200
commit2243a0dd1adc75530bed663db808971789729df3 (patch)
treed1e003ab8b2db0c3dd9f4a685155d51be2e9681e /src/afb-ws.c
parent5d248158cc380d0a164fa56b46a7bdede4115407 (diff)
Websocket client select if looping or not
Allows the client to tell websocket module to not loop on messages. Change-Id: Iaa1025ce5442a5659554ba66fcc5869a1e8659b4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-ws.c')
-rw-r--r--src/afb-ws.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afb-ws.c b/src/afb-ws.c
index 5af2434f..cc852b20 100644
--- a/src/afb-ws.c
+++ b/src/afb-ws.c
@@ -379,7 +379,7 @@ static void aws_on_readable(struct afb_ws *ws)
int rc;
assert(ws->ws != NULL);
- rc = websock_dispatch(ws->ws);
+ rc = websock_dispatch(ws->ws, 0);
if (rc < 0 && errno == EPIPE)
afb_ws_hangup(ws);
}