]> git.kaiwu.me - haproxy.git/commit
REGTESTS: http-rules: test the tarpit, deny and silent-drop actions
authorWilly Tarreau <w@1wt.eu>
Mon, 21 Sep 2026 20:48:09 +0000 (20:48 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Sep 2026 15:18:38 +0000 (17:18 +0200)
commitd8494dd21ebc1bd4c04b4add7f32ec674b6ecc1c
tree84ccda888c76cef5291b4f8b1c77ca24561a3478
parent7711d03f372fb3943e680b47890d5f1c33c0e0ec
REGTESTS: http-rules: test the tarpit, deny and silent-drop actions

The tarpit action was only referenced by the "set-timeout" test,
silent-drop was not covered at all, and deny was always used in its
default form, never with a customized status, body, content type or
extra header.

The test checks the default and the customized status of tarpit, the
"PT" termination state it produces in the log, the customized response
of deny, and that silent-drop closes the connection since we're using
rst-ttl here for portability reasons. The pause action is exercised
too, with a short delay.

"timeout tarpit" is set to a small value so that the test stays fast.
reg-tests/http-rules/tarpit_deny_drop.vtc [new file with mode: 0644]