BUG/MINOR: stream: Reset stream final state and si error type on L7 retry
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 5 May 2021 19:05:09 +0000 (21:05 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 7 May 2021 13:42:44 +0000 (15:42 +0200)
commitd2d264fe64dfc5d9eaa690371d86c972149023ac
tree80622a23f6603ab2504b82c540ae750b2e36cff9
parent77ec58de4723f7b77bfb024c2f68e445e96a042a
BUG/MINOR: stream: Reset stream final state and si error type on L7 retry

Thanks to a previous fix, the stream error mask is now cleared on L7
retry. But the stream final state (SF_FINST_*) and the stream-interface
error type must also be reset to properly restart a new connection and be
sure to not inherit errors from the previous connection attempt.

In addition, SF_ADDR_SET flag is not systematically removed.
stream_choose_redispatch() already takes care to unset it if necessary. When
the connection is not redispatch, the server address can be preserved.

This patch must be backported as far as 2.0.

(cherry picked from commit 30aa0da532a9853b3ed5b89152fd57537d07ee88)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/http_ana.c