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

ss-hx: make sure hanging_some handled once

This commit is contained in:
Andy Green 2020-12-27 08:41:54 +00:00
parent 097bbbd1eb
commit 094bfc4e99

View file

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