From 6cdaf85b892e49ea46dc27136084ee576ec07447 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Wed, 29 Sep 2021 06:24:05 +0100 Subject: [PATCH] ss: allow POLL from CONNECTING Since CONNECTING is async and may take a while, there's nothing actually wrong if the application asks to write again in the meanwhile and provokes POLL. --- lib/secure-streams/secure-streams.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/secure-streams/secure-streams.c b/lib/secure-streams/secure-streams.c index 8e398d24c..4f56bcdc5 100644 --- a/lib/secure-streams/secure-streams.c +++ b/lib/secure-streams/secure-streams.c @@ -128,6 +128,7 @@ const uint32_t ss_state_txn_validity[] = { (1 << LWSSSCS_CONNECTING) | (1 << LWSSSCS_CONNECTED) | (1 << LWSSSCS_TIMEOUT) | + (1 << LWSSSCS_POLL) | (1 << LWSSSCS_DISCONNECTED) | /* proxy retry */ (1 << LWSSSCS_DESTROYING),