mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-03-14 11:31:59 +01:00
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.
This commit is contained in:
parent
97a63835af
commit
e0728ebcf4
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user