From d3f6f08f2c315ae4ce970ff56fee569af18e09ed Mon Sep 17 00:00:00 2001 From: Andy Green Date: Thu, 26 Mar 2020 18:10:18 +0000 Subject: [PATCH] h1: handle LRS_FLUSHING_BEFORE_CLOSE at ops read read has a tight leash on the states it's happy to turn up there, it's good to be like that but it turns out LRS_FLUSHING_BEFORE_CLOSE should be whitelisted since it can happen under some transient conditions and is valid. https://github.com/warmcat/libwebsockets/issues/1872 --- lib/roles/h1/ops-h1.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/roles/h1/ops-h1.c b/lib/roles/h1/ops-h1.c index 87228e858..e8a66b7df 100644 --- a/lib/roles/h1/ops-h1.c +++ b/lib/roles/h1/ops-h1.c @@ -249,6 +249,9 @@ ws_mode: case LRS_SSL_ACK_PENDING: break; + case LRS_FLUSHING_BEFORE_CLOSE: + break; + case LRS_DEAD_SOCKET: lwsl_err("%s: Unhandled state LRS_DEAD_SOCKET\n", __func__); goto bail;