From e0728ebcf48dbc4d1ea4ce4536cbc787aed4e644 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Thu, 5 Mar 2026 09:42:25 +0100 Subject: [PATCH] BUG/MINOR: channel: Increase the stconn bytes_in value in channel_add_input() This function is no longer used. So it is not really an bug. But it is still available and could be used by legacy applets. In that case, we must take care to increment the stconn bytes_in value accordingly when input data are inserted. This patch must be backported to 3.3. --- include/haproxy/channel.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/haproxy/channel.h b/include/haproxy/channel.h index af2989416..6b8e793dc 100644 --- a/include/haproxy/channel.h +++ b/include/haproxy/channel.h @@ -376,6 +376,7 @@ static inline void channel_add_input(struct channel *chn, unsigned int len) c_adv(chn, fwd); } /* notify that some data was read */ + chn_prod(chn)->bytes_in += len; chn->flags |= CF_READ_EVENT; }