aboutsummaryrefslogtreecommitdiff
path: root/lib/roles/h1
diff options
context:
space:
mode:
authorAndy Green <andy@warmcat.com>2020-03-26 18:07:48 +0000
committerAndy Green <andy@warmcat.com>2020-03-26 18:07:48 +0000
commit2f6e0ed10baf9d000d18cc5831b8d7b40aac60f5 (patch)
tree3d5615da7b8e8846c831c1fafe8ee3f1e66728ef /lib/roles/h1
parent4cc7f4ed02ad483dcb48f90baa5cc48a33a76a9a (diff)
downloadlibwebsockets-2f6e0ed10baf9d000d18cc5831b8d7b40aac60f5.tar.gz
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
Diffstat (limited to 'lib/roles/h1')
-rw-r--r--lib/roles/h1/ops-h1.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/roles/h1/ops-h1.c b/lib/roles/h1/ops-h1.c
index bc9de63d..8e100808 100644
--- a/lib/roles/h1/ops-h1.c
+++ b/lib/roles/h1/ops-h1.c
@@ -256,6 +256,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;