1
0
Fork 0
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:
Andy Green 2018-02-20 07:19:38 +08:00
parent ff2f5f601d
commit faef0b047f

View file

@ -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 +