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

ss-h1: reset message state for repeated use

This lets one "opportunistic" mode http policy SS be able to be used
multiple times.
This commit is contained in:
Andy Green 2021-09-14 05:29:16 +01:00
parent c6cd4150c1
commit e502a5fb44

View file

@ -475,6 +475,8 @@ secstream_h1(struct lws *wsi, enum lws_callback_reasons reason, void *user,
// __func__, wsi->lc.gutag);
h->wsi = NULL;
h->hanging_som = 0;
h->subseq = 0;
#if defined(LWS_WITH_SERVER)
lws_pt_lock(pt, __func__);
@ -820,6 +822,7 @@ malformed:
if (h->hanging_som) {
h->info.rx(ss_to_userobj(h), NULL, 0, LWSSS_FLAG_EOM);
h->hanging_som = 0;
h->subseq = 0;
}
wsi->http.writeable_len = h->writeable_len = 0;