]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: increase chunk-size limit to 2GB-1
authorWilly Tarreau <w@1wt.eu>
Fri, 24 Feb 2012 18:20:12 +0000 (19:20 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 27 Feb 2012 08:51:52 +0000 (09:51 +0100)
commit431946e9617572d2813bd5a8f5a51ce36f841ea3
tree8b2c102909c0820b17143ef182a7193a7983347b
parent53bf6af3f9648837c961ba6019f1c318652a6d1c
MEDIUM: increase chunk-size limit to 2GB-1

Since commit 115acb97, chunk size was limited to 256MB. There is no reason for
such a limit and the comment on the code suggests a missing zero. However,
increasing the limit past 2 GB causes trouble due to some 32-bit subtracts
in various computations becoming negative (eg: buffer_max_len). So let's limit
the chunk size to 2 GB - 1 max.
src/proto_http.c