]> git.kaiwu.me - haproxy.git/commit
REGTESTS: decompression: don't use yes(1) in http_large_cl
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 17 Nov 2026 16:37:14 +0000 (17:37 +0100)
committerOlivier Houchard <cognet@ci0.org>
Tue, 17 Nov 2026 16:23:04 +0000 (17:23 +0100)
commit83b5d711a4766112206802df1bcc3f9f958b340a
tree2d9ed2d971cf3cdf1cc271484875a79f2fe685c8
parentc6ddc7b38ccbe9e08190266c258228248c4a0cda
REGTESTS: decompression: don't use yes(1) in http_large_cl

The body of http_large_cl.vtc was produced using "yes | head -c". But
vtest ignores SIGPIPE, which is inherited by the shell commands, and
BusyBox's yes never stops when its output is closed in this case. The test
then hangs until it is killed by vtest, as seen on the Alpine CI. GNU yes
is not affected because it exits on the write error.

Let's use awk instead to produce the same 24000 bytes. This test was added
by commit 68a8abcbe ("REGTESTS: decompression: test a large decompressed
Content-Length response"), no backport is needed.
reg-tests/decompression/http_large_cl.vtc