]> git.kaiwu.me - haproxy.git/commit
DEV: h2: mkhdr: add -n to repeat the emitted frames
authorWilly Tarreau <w@1wt.eu>
Mon, 16 Nov 2026 15:04:09 +0000 (15:04 +0000)
committerWilly Tarreau <w@1wt.eu>
Tue, 17 Nov 2026 10:08:46 +0000 (11:08 +0100)
commit05146e6eb9009977ed370eb2514c552a54ffdf1d
treec7836d17824a879961212e73d3a6b44e7e0d30bb
parentc53aa3f9ddf1d0406baf9ab36b5c1926752eb544
DEV: h2: mkhdr: add -n to repeat the emitted frames

It's often needed to send the same frame many times (e.g. PING or
WINDOW_UPDATE floods, or many CONTINUATION frames), which used to
require calling the tool in a loop. The new "-n <count>" option emits
the resulting frame(s) <count> times in a row. The frame is built
only once and its output repeated. When used with -d, the whole
sequence of frames carrying the file is repeated. A count of zero
emits nothing. It's also accepted with the preface.
dev/h2/mkhdr.c