From f004ec594ee3032efd49c6fd329bdf8dff5c5832 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sat, 12 Apr 2014 11:47:25 +0800 Subject: [PATCH] rxflow just return 0 when changing state Nobody cares if we changed state, and callers are increasingly taking nonzero as fail, causing us to drop the connection when we re-enable rxflow. Signed-off-by: Andy Green --- lib/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/server.c b/lib/server.c index e358719d..bb9a1ae1 100644 --- a/lib/server.c +++ b/lib/server.c @@ -162,7 +162,7 @@ _libwebsocket_rx_flow_control(struct libwebsocket *wsi) if (lws_change_pollfd(wsi, LWS_POLLIN, 0)) return -1; - return 1; + return 0; }