mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-09 16:47:18 +02:00
BUG/MEDIUM: h2/hpack: fix emission of HPACK DTSU after settings change
Sadly, despite particular care, commit 39a0a1e12
("MEDIUM: h2/hpack: emit
a Dynamic Table Size Update after settings change") broke H2 when sending
DTSU. A missing negation on the flag caused the DTSU_EMITTED flag to be
lost and the DTSU to be sent again on the next stream, and possibly to
break flow control or a few other internal states.
This will have to be backported wherever the patch above was backported.
Thanks to Yves Lafon for notifying us with elements to reproduce the
issue!
This commit is contained in:
parent
c382005636
commit
c7d85485a0
@ -5259,7 +5259,7 @@ static size_t h2s_frt_make_resp_headers(struct h2s *h2s, struct htx *htx)
|
||||
if (h2c->flags & H2_CF_SHTS_UPDATED) {
|
||||
/* was sent above */
|
||||
h2c->flags |= H2_CF_DTSU_EMITTED;
|
||||
h2c->flags &= H2_CF_SHTS_UPDATED;
|
||||
h2c->flags &= ~H2_CF_SHTS_UPDATED;
|
||||
}
|
||||
|
||||
if (es_now) {
|
||||
|
Loading…
Reference in New Issue
Block a user