]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MAJOR: trash must always be the size of a buffer
authorDavid du Colombier <dducolombier@exceliance.fr>
Wed, 16 May 2012 12:16:48 +0000 (14:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 May 2012 12:21:55 +0000 (14:21 +0200)
commit7af4605ef76f6929835eefd13664beab379101b5
tree9242526704c9faa7e97e7ef98b1f6c9731ad0a66
parent7823de3d90009de9b52707f681109a72423116b9
BUG/MAJOR: trash must always be the size of a buffer

Before it was possible to resize the buffers using global.tune.bufsize,
the trash has always been the size of a buffer by design. Unfortunately,
the recent buffer sizing at runtime forgot to adjust the trash, resulting
in it being too short for content rewriting if buffers were enlarged from
the default value.

The bug was encountered in 1.4 so the fix must be backported there.
include/types/global.h
src/acl.c
src/cfgparse.c
src/checks.c
src/dumpstats.c
src/haproxy.c
src/peers.c
src/proto_http.c
src/sock_raw.c
tests/0000-debug-stats.diff