From 0f799ca4dfdb8f5cdbf4cc55a380f912308a09fd Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 4 Dec 2018 15:20:11 +0100 Subject: [PATCH] BUG/MEDIUM: mux-h2: properly update the window size in HTX mode When sending data in HTX mode, we forgot to update the window size, it was the cause of the limitation to 1 GB in testing. No backport is needed. --- src/mux_h2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mux_h2.c b/src/mux_h2.c index b93aa24f3..5150b4e38 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -4369,6 +4369,8 @@ static size_t h2s_htx_frt_make_resp_data(struct h2s *h2s, struct htx *htx) /* now let's copy this this into the output buffer */ memcpy(outbuf.area + 9, htx_get_blk_ptr(htx, blk), fsize); + h2s->mws -= fsize; + h2c->mws -= fsize; send_empty: /* update the frame's size */