BUG/MINOR: haterm: don't apply the default pipe size margin twice

Commit 6d16b11022 ("BUG/MINOR: haterm: preserve the pipe size margin
for splicing") solved the issue of pipe size being sufficient for the
vmsplice() call, but as Christopher pointed out, the ratio was applied
to the default size of 64k, so now it's applied twice, giving 100k
instead of 80k. Let's drop it from there.

No backport needed.
This commit is contained in:
Willy Tarreau 2026-04-13 19:38:48 +02:00
parent 79c54d28b0
commit 9a5db56a36

View File

@ -1210,7 +1210,7 @@ static int hstream_build_responses(void)
#if defined(USE_LINUX_SPLICE)
static void hstream_init_splicing(void)
{
unsigned int pipesize = 65536 * 5 / 4;
unsigned int pipesize = 65536;
if (!(global.tune.options & GTUNE_USE_SPLICE) || !global.maxpipes)
return;