]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-h2: report a trace event when failing to create a new stream
authorWilly Tarreau <w@1wt.eu>
Thu, 12 May 2022 07:24:41 +0000 (09:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 12 May 2022 07:29:58 +0000 (09:29 +0200)
commite872f75fc453baba9cb07b0383096ab6fcb8fb76
treea986de5f39e204c473f26d7c88bc47fdcffcc864
parent198b50770d2f2d98a1d399ecb003be28a10ae128
MINOR: mux-h2: report a trace event when failing to create a new stream

There are two reasons we can reject the creation of an h2 stream on the
frontend:
  - its creation would violate the MAX_CONCURRENT_STREAMS setting
  - there's no more memory available

And on the backend it's almost the same except that the setting might
have be negotiated after trying to set up the stream.

Let's add traces for such a sitaution so that it's possible to know why
the stream was rejected (currently we only know it was rejected).

It could be nice to backport this to the most recent versions.
src/mux_h2.c