]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-h2: always reset rcvd_s when switching to a new frame
authorWilly Tarreau <w@1wt.eu>
Tue, 6 Aug 2019 13:49:51 +0000 (15:49 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 6 Aug 2019 13:49:51 +0000 (15:49 +0200)
commit30d05f35571ebff61666e1954a696a25503ed6b0
tree23862b24b6a024681d36f6b6ea5f1c8efe95daf4
parente74679a9c65009931c75ca92e31751b2a5573554
BUG/MINOR: mux-h2: always reset rcvd_s when switching to a new frame

In Patrick's trace it was visible that after a stream had been missed,
the next stream would receive a WINDOW_UPDATE with the first one's
credit added to its own. This makes sense because in case of error
h2c->rcvd_s is not reset. Given that this counter is per frame, better
reset it when starting to parse a new frame, it's easier and safer.

This must be backported as far as 1.8.
src/mux_h2.c