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

h1: deal with WAITING_CONNECT in ops-h1

We don't normally see events on the wsi in this state, but it is possible
since warmcat.com lwsws asserted on it in WAITING_CONNECT.

Explicitly handle it so we don't blow up.
This commit is contained in:
Andy Green 2022-02-11 07:18:22 +00:00
parent 28b1e1f463
commit 027fe42cec

View file

@ -292,6 +292,9 @@ ws_mode:
// assert(0);
/* fallthru */
case LRS_WAITING_CONNECT: /* observed on warmcat.com */
break;
default:
lwsl_err("%s: Unhandled state %d\n", __func__, lwsi_state(wsi));
assert(0);