]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: channel: Use dedicated functions to deal with STREAMER flags
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 21 Nov 2023 06:51:45 +0000 (07:51 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 Dec 2023 09:24:41 +0000 (10:24 +0100)
commita40321eb3b4188ac013db570d104e00d27f7afda
tree9f66f34c03cf1751d3e6c90e117dc5f43bce8f06
parenteb67d63456c2188d5ccf7fae8e80b426fe7e9e1a
MINOR: channel: Use dedicated functions to deal with STREAMER flags

For now, CF_STREAMER and CF_STREAMER_FAST flags are set in sc_conn_recv()
function. The logic is moved in dedicated functions.

First, channel_check_idletimer() function is now responsible to check the
channel's last read date against the idle timer value to be sure the
producer is still streaming data. Otherwise, it removes STREAMER flags.

Then, channel_check_xfer() function is responsible to check amount of data
transferred avec a receive, to eventually update STREAMER flags.

In sc_conn_recv(), we now use these functions.
include/haproxy/channel.h
src/stconn.c