commit | 4bd58676275d557a654979948f587aaae8e15c0d | [log] [tgz] |
---|---|---|
author | Olivier Houchard <ohouchard@haproxy.com> | Fri Jul 12 16:16:59 2019 +0200 |
committer | Olivier Houchard <cognet@ci0.org> | Fri Jul 12 16:17:50 2019 +0200 |
tree | 2fbeec062bcb40c3fee2f127a9e3cd16ccbbf914 | |
parent | 29cac3c5f7bbac3ae937a91137608d8fd6f73070 [diff] |
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.