From 2ca5d8605b093ea26e1e39e1eb582910f0aee78b Mon Sep 17 00:00:00 2001 From: Andy Green Date: Wed, 25 Sep 2024 08:52:28 +0100 Subject: [PATCH] ws: increase sanity check for spins needed to consume buffer to 100 https://github.com/warmcat/libwebsockets/issues/3184 --- lib/roles/ws/ops-ws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/roles/ws/ops-ws.c b/lib/roles/ws/ops-ws.c index 3282d3dfe..881d3f12c 100644 --- a/lib/roles/ws/ops-ws.c +++ b/lib/roles/ws/ops-ws.c @@ -943,7 +943,7 @@ rops_handle_POLLIN_ws(struct lws_context_per_thread *pt, struct lws *wsi, unsigned int pending = 0; struct lws_tokens ebuf; char buffered = 0; - int n = 0, m, sanity = 10; + int n = 0, m, sanity = 100; #if defined(LWS_WITH_HTTP2) struct lws *wsi1; #endif