mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-23 00:00:06 +01:00
h2: clear back-to-back detection when looping through h2 child POLLOUT
The do {} while() checks each time for choked on the parent connection.
This commit is contained in:
parent
ff2f5f601d
commit
faef0b047f
1 changed files with 4 additions and 0 deletions
|
@ -456,6 +456,10 @@ user_service_go_again:
|
|||
lwsl_info("%s: child %p (state %d)\n", __func__, (*wsi2),
|
||||
(*wsi2)->state);
|
||||
|
||||
/* if we arrived here, even by looping, we checked choked */
|
||||
w->could_have_pending = 0;
|
||||
wsi->could_have_pending = 0;
|
||||
|
||||
if (w->h2.pending_status_body) {
|
||||
w->h2.send_END_STREAM = 1;
|
||||
n = lws_write(w, (uint8_t *)w->h2.pending_status_body +
|
||||
|
|
Loading…
Add table
Reference in a new issue