]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mux-h1: implement basic glitches support
authorWilly Tarreau <w@1wt.eu>
Fri, 19 Dec 2025 22:38:24 +0000 (23:38 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 20 Dec 2025 18:29:33 +0000 (19:29 +0100)
commit05b457002b2e534b12e9cebab20b70c62b54e8cf
tree6ce4097a3c67d81ccdaff620e9ec33bd098fce6e
parent0901f60cefe6e4a67b9063ad9d97a83c0814b783
MEDIUM: mux-h1: implement basic glitches support

We now count glitches for each parsing error, including those that
have been accepted via accept-unsafe-violations-*. Front and back
are considered and the connection gets killed on error once if the
threshold is reached or passed and the CPU usage is beyond the
configured limit (0 by default). This was tested with:

   curl -ivH "host : blah" 0:4445{,,,,,,,,,}

which sends 10 requests to a configuration having a threshold of 5.
The global keywords are named similarly to H2 and quic:

     tune.h1.be.glitches-threshold xxxx
     tune.h1.fe.glitches-threshold xxxx

The glitches count of each connection is also reported when non-null
in the connection dumps (e.g. "show fd").
doc/configuration.txt
src/mux_h1.c