]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: streams: Don't redispatch with L7 retries if redispatch isn't set.
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 12 Jul 2019 14:16:59 +0000 (16:16 +0200)
committerOlivier Houchard <cognet@ci0.org>
Fri, 12 Jul 2019 14:17:50 +0000 (16:17 +0200)
commit4bd58676275d557a654979948f587aaae8e15c0d
tree2fbeec062bcb40c3fee2f127a9e3cd16ccbbf914
parent29cac3c5f7bbac3ae937a91137608d8fd6f73070
BUG/MEDIUM: streams: Don't redispatch with L7 retries if redispatch isn't set.

Move the logic to decide if we redispatch to a new server from
sess_update_st_cer() to a new inline function, stream_choose_redispatch(), and
use it in do_l7_retry() instead of just setting the state to SI_ST_REQ.
That way, when using L7 retries, we won't redispatch the request to another
server except if "option redispatch" is used.

This should be backported to 2.0.
include/proto/stream.h
src/proto_htx.c
src/stream.c