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:
parent
c6cd4150c1
commit
e502a5fb44
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue