]> git.kaiwu.me - haproxy.git/commit
MINOR: mux-h2: report glitches on early RST_STREAM
authorWilly Tarreau <w@1wt.eu>
Thu, 19 Mar 2026 17:00:20 +0000 (18:00 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 30 Mar 2026 14:32:21 +0000 (16:32 +0200)
commite375f1061a1ff0ea38ff473ec6ef45bbc714b921
treef26d6a7182b72fb3c613caa9b65b318be92d0e00
parentcf3173d92b178bd9bbcb22002001f0cff8e5f275
MINOR: mux-h2: report glitches on early RST_STREAM

We leverage the SE_FL_APP_STARTED flag to detect whether the application
layer had a chance to run or not when an RST_STREAM is received. This
allows us to triage RST_STREAM between regular ones and harmful ones,
and to count glitches for them. It reveals extremely effective at
detecting fast HEADERS+RST pairs.

It could be useful to backport it to 3.2, though it depends on these
two previous patches to be backported first (the first one was already
planned and the second one is harmless, though will require to drop
the haterm changes):

  BUG/MINOR: stconn: Always declare the SC created from healthchecks as a back SC
  MINOR: stconn: flag the stream endpoint descriptor when the app has started
src/mux_h2.c