From 027fe42ceca78e04beb65d5c926cf6342e65acc8 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Fri, 11 Feb 2022 07:18:22 +0000 Subject: [PATCH] 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. --- 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 4590a4975..b21b69e4b 100644 --- a/lib/roles/h1/ops-h1.c +++ b/lib/roles/h1/ops-h1.c @@ -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);