MEDIUM: session: don't apply the retry delay when redispatching
authorWilly Tarreau <w@1wt.eu>
Fri, 13 Jun 2014 15:40:15 +0000 (17:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 13 Jun 2014 15:48:45 +0000 (17:48 +0200)
commitdb6d012270be8184a287aabc7f670e209b243aa6
tree2a8b07c01d99a5d2fa2fdcf592d4ef57bac4a1eb
parentb02906659b510c0c6c052d8aedff54adee395e95
MEDIUM: session: don't apply the retry delay when redispatching

The retry delay is only useful when sticking to a same server. During
a redispatch, it's useless and counter-productive if we're sure to
switch to another server, which is almost guaranteed when there's
more than one server and the balancing algorithm is round robin, so
better not pass via the turn-around state in this case. It could be
done as well for leastconn, but there's a risk of always killing the
delay after the recovery of a server in a farm where it's almost
guaranteed to take most incoming traffic. So better only kill the
delay when using round robin.
src/session.c