]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: sink: don't perform implicit truncations when maxlen is not set
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 31 Aug 2023 06:37:36 +0000 (08:37 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 Sep 2023 14:06:39 +0000 (16:06 +0200)
commit32f1db6d0d43452e6a2a353565e5dbb207d6a2dd
tree6bfe2843ec3140013ab259b6d63e90f40dde91d3
parentfdf82d058b5ce2ce3a99f14e75754888cbe2fde6
MEDIUM: sink: don't perform implicit truncations when maxlen is not set

maxlen now defaults ~0 (instead of BUFSIZE) to make sure no implicit
truncation will be performed when the option is not specified, since the
doc doesn't mention any default value for maxlen. As such, if the payload
is too big, it will be dropped (this is the default expected behavior).
src/sink.c