From 094bfc4e99441945de647fae4ff72948a7aa0c61 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sun, 27 Dec 2020 08:41:54 +0000 Subject: [PATCH] ss-hx: make sure hanging_some handled once --- lib/secure-streams/protocols/ss-h1.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/secure-streams/protocols/ss-h1.c b/lib/secure-streams/protocols/ss-h1.c index 1ddfc0d1d..41108b959 100644 --- a/lib/secure-streams/protocols/ss-h1.c +++ b/lib/secure-streams/protocols/ss-h1.c @@ -705,8 +705,10 @@ malformed: case LWS_CALLBACK_COMPLETED_CLIENT_HTTP: lwsl_debug("%s: LWS_CALLBACK_COMPLETED_CLIENT_HTTP\n", __func__); - if (h->hanging_som) + if (h->hanging_som) { h->info.rx(ss_to_userobj(h), NULL, 0, LWSSS_FLAG_EOM); + h->hanging_som = 0; + } wsi->http.writeable_len = h->writeable_len = 0; lws_sul_cancel(&h->sul_timeout);