]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
director: Avoid USER loops with >1s ring latency also with old directors
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sat, 25 Nov 2017 23:31:08 +0000 (01:31 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 26 Nov 2017 11:04:42 +0000 (13:04 +0200)
commitf481219748978a74c4060ca41d56f184b358e30a
tree2ae3f5aa1a97ba88e4354fb6865dfb3ace2e0bc8
parent93616be1837458d187d38e289236a228ef8e31bc
director: Avoid USER loops with >1s ring latency also with old directors

Do this by ignoring USER refreshes that were already updated recently.
The "recently" is calculated by director_user_expire/4 seconds ago, but
with an upper limit of 15 secs. This means that the USER loops can now
only exist if the director ring latency is above 15 seconds. (Once all
directors in the ring are running the new version, there's no looping
at any latency.)
src/director/director-connection.c