1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

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
This commit is contained in:
Andy Green 2020-03-26 18:07:48 +00:00
parent 4cc7f4ed02
commit 2f6e0ed10b

View file

@ -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;