]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: channel: initialize xfer_small/xfer_large on new buffers
authorWilly Tarreau <w@1wt.eu>
Sun, 9 Feb 2014 07:31:49 +0000 (08:31 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 12 Feb 2014 10:45:45 +0000 (11:45 +0100)
commit8f39dcdc8d48b28c2a76eac27aeb78ee89b3ae3f
tree4e9c89da5905f222629e775db1166cbc9ea70e1c
parent852745d54844bf08456a5f4e1cae3ac6068f73ea
BUG/MINOR: channel: initialize xfer_small/xfer_large on new buffers

These ones are only reset during transfers. There is a low but non-null
risk that a first full read causes the previous value to be reused and
immediately to immediately set the CF_STREAMER flag. The impact is only
to increase earlier than expected the SSL record size and to use splice().

This bug was already present in 1.4, so a backport is possible.
include/proto/channel.h