From: Timo Sirainen Date: Tue, 25 Jul 2023 07:06:41 +0000 (+0300) Subject: lib-http: Fix growing connect_backoff_[max_]time_msecs after peer is destroyed X-Git-Tag: 2.4.1~1456 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b2c1630e7f8f0a5814e35523bcf47fd3f7dfee80;p=thirdparty%2Fdovecot%2Fcore.git lib-http: Fix growing connect_backoff_[max_]time_msecs after peer is destroyed If the other peers had larger backoff times than the destroyed peer, the backoff times weren't updated. --- diff --git a/src/lib-http/http-client-peer.c b/src/lib-http/http-client-peer.c index d222eb3865..12e73a16ea 100644 --- a/src/lib-http/http-client-peer.c +++ b/src/lib-http/http-client-peer.c @@ -682,6 +682,8 @@ bool http_client_peer_unref(struct http_client_peer **_peer) i_free(peer); /* Choose new backoff times */ + pshared->backoff_initial_time_msecs = UINT_MAX; + pshared->backoff_max_time_msecs = UINT_MAX; peer = pshared->peers_list; while (peer != NULL) { struct http_client *client = peer->client;