]> git.kaiwu.me - haproxy.git/commit
REGTESTS: http-messaging: also test chunk extensions on chunks larger than the buffer
authorWilly Tarreau <w@1wt.eu>
Mon, 23 Nov 2026 19:12:36 +0000 (19:12 +0000)
committerWilly Tarreau <w@1wt.eu>
Tue, 24 Nov 2026 09:50:37 +0000 (10:50 +0100)
commit7bbeca1e8e61631c662b45152abd259f07fc7638
tree4d7abf53ca3d567802c8518e9c068a5589661854
parentddac58392fe555ddeaa9986849c6cba2d5c213d8
REGTESTS: http-messaging: also test chunk extensions on chunks larger than the buffer

The contiguous chunks parser leaves a chunk larger than the room left
in the HTX to h1_parse_chunk_size(), which parses its size line on its
own. Let's replay the regular chunk cases with a 16kB chunk to cover
this path as well: valid ones must be forwarded with their data, and
invalid ones rejected on the size line without reaching the server
(a mistakenly accepted request would wait for its data and time out,
also with a 400, hence the dedicated server that must never be
reached).
reg-tests/http-messaging/h1_chunk_extensions.vtc