]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: channel: rename channel_full() to !channel_may_recv()
authorWilly Tarreau <w@1wt.eu>
Tue, 13 Jan 2015 19:20:10 +0000 (20:20 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 14 Jan 2015 17:41:33 +0000 (18:41 +0100)
commit3889fffe923551ece12f708904cab7c0dc57c5a0
tree729e800d35f62c5b185c08dbaf185f40387d0080
parentba0902ede4f9188714c8aa15791ca85847162960
MINOR: channel: rename channel_full() to !channel_may_recv()

This function's name was poorly chosen and is confusing to the point of
being suspiciously used at some places. The operations it does always
consider the ability to forward pending input data before receiving new
data. This is not obvious at all, especially at some places where it was
used when consuming outgoing data to know if the buffer has any chance
to ever get the missing data. The code needs to be re-audited with that
in mind. Care must be taken with existing code since the polarity of the
function was switched with the renaming.
include/common/buffer.h
include/proto/channel.h
src/channel.c
src/payload.c
src/stream_interface.c