BUG/MEDIUM: streams: Remove SF_ADDR_SET if we're retrying due to L7 retry.
authorOlivier Houchard <cognet@ci0.org>
Tue, 12 May 2020 20:18:14 +0000 (22:18 +0200)
committerOlivier Houchard <cognet@ci0.org>
Wed, 13 May 2020 17:02:38 +0000 (19:02 +0200)
commit8cabc9783aaa8309f4ec6f7dd95cd74c61ed2e61
tree4a6054b8fbf72d950b1bc8686f5267f043b00c64
parentc9c475e40d9104cc12ebc9320cb768bb4794766d
BUG/MEDIUM: streams: Remove SF_ADDR_SET if we're retrying due to L7 retry.

In do_l7_retry(), remove the SF_ADDR_SET flag. Otherwise,
assign_server_address() won't be called again, which means for 2.1 or 2.2,
we will always retry to connect to the server that just failed, and for 2.0,
that we will try to use to whatever the address is for the connection,
probably the last server used by that connection before it was pool_free()
and reallocated.

This should be backported to 2.1 and 2.0.
src/http_ana.c