]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-h2: refuse to allocate a stream with too high an ID
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Jan 2019 16:08:28 +0000 (17:08 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Jan 2019 18:06:43 +0000 (19:06 +0100)
commita80dca85350bbc14dd450cdb26ebb84733d57e87
tree6782c8ab712c9bfc8ee6c86f18bb77dbc38d43f7
parentd64a3ebe64eca09a602aa650ced1951867f4ed34
BUG/MINOR: mux-h2: refuse to allocate a stream with too high an ID

One of the reasons for the excessive number of aborted requests when a
server sets a limit on the highest stream ID is that we don't check
this limit while allocating a new stream.

This patch does this at two locations :
  - when a backend stream is allocated, we verify that there are still
    IDs left ;
  - when the ID is assigned, we verify that it's not higher than the
    advertised limit.

This should be backported to 1.9.
src/mux_h2.c