]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] don't refresh timeouts late after detected activity
authorWilly Tarreau <w@1wt.eu>
Sun, 4 Oct 2009 08:56:08 +0000 (10:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 4 Oct 2009 09:00:41 +0000 (11:00 +0200)
commit1932d372d50cdf07bb679d5a358f15500cc14571
treefb0e80394e2231d1b2adeda23d48d773bf7ffc0e
parenta3e0e0767f55474e676fffa3387dab4d022a0675
[BUG] don't refresh timeouts late after detected activity

In old versions, before 1.3.16, we had to refresh the timeouts after
each call to process_session() because the stream socket handler did
not do it. Now that the sockets can exchange data for a long period
without calling process_session(), we can detect an old activity and
refresh a timeout long after the last activity, causing too late a
detection of some timeouts.

The fix simply consists in not checking for activity anymore in
stream_sock_data_finish() but only set a timeout if it was not
previously set.
(cherry picked from commit fe8903cc76184ef20109d9ec9729a88368b2ccd7)
src/stream_sock.c