]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: channel: Add the function channel_add_input
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 2 Jan 2019 13:24:35 +0000 (14:24 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 2 Jan 2019 19:12:44 +0000 (20:12 +0100)
commite64582929fd1171ebe4c84488a1fcf44a5fb6fbc
tree934c9fe89ac66f04d89a11b8d6c9ff387b389c81
parentb1d7b700bbbb02134b85ef252282a672ddf27e29
MINOR: channel: Add the function channel_add_input

This function must be called when new incoming data are pushed in the channel's
buffer. It updates the channel state and take care of the fast forwarding by
consuming right amount of data and decrementing "->to_forward" accordingly when
necessary. In fact, this patch just moves a part of ci_putblk in a dedicated
function.

This patch must be backported to 1.9.
include/proto/channel.h
src/channel.c