]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: stream: Don't clear the stream_interface flags in si_update_both.
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 9 Apr 2019 17:17:41 +0000 (19:17 +0200)
committerOlivier Houchard <cognet@ci0.org>
Tue, 9 Apr 2019 17:31:22 +0000 (19:31 +0200)
commit86dcad6c62fc6c2d2f1e16602b3c924fb4da4d5c
treeebdd54e58f027e836d5d854dd4e5bb9d87e0ec6d
parent120f64a8c4f18c0ab3dc020d9c16371a4babe132
BUG/MEDIUM: stream: Don't clear the stream_interface flags in si_update_both.

In commit d7704b534, we introduced and expiration flag on the stream interface,
which is used for the connect, the queue and the turn around. Because the
turn around state isn't an error, the flag was reset in process_stream(), and
later in commit cff6411f9 when introducing the SI_FL_ERR flag, the cleanup
of the flag at this place was erroneously generalized.
To fix this, the SI_FL_EXP flag is only cleared at the end of the turn around
state, and nobody should clear the stream interface flags anymore.

This should be backported to 1.9, it has no known impact on older versions.
src/stream.c
src/stream_interface.c