]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: stream-int: also update analysers timeouts on activity
authorWilly Tarreau <w@1wt.eu>
Thu, 1 Aug 2019 16:51:38 +0000 (18:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 1 Aug 2019 16:58:21 +0000 (18:58 +0200)
commit45bcb37f0f8fa1e16dd9358a59dc280a38834dcd
tree59833c8a3744e89ba51505d873dbba25af8c0be2
parent6e5f2ceead4b4b03c0f3308fcbc8328e3841690d
BUG/MINOR: stream-int: also update analysers timeouts on activity

Between 1.6 and 1.7, some parts of the stream forwarding process were
moved into lower layers and the stream-interface had to keep the
stream's task up to date regarding the timeouts. The analyser timeouts
were not updated there as it was believed this was not needed during
forwarding, but actually there is a case for this which is "option
contstats" which periodically triggers the analyser timeout, and this
change broke the option in case of sustained traffic (if there is some
I/O activity during the same millisecond as the timeout expires, then
the update will be missed).

This patch simply brings back the analyser expiration updates from
process_stream() to stream_int_notify().

It may be backported as far as 1.7, taking care to adjust the fields
names if needed.
src/stream_interface.c