]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: Fix growing connect_backoff_[max_]time_msecs after peer is destroyed
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 25 Jul 2023 07:06:41 +0000 (10:06 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Feb 2025 10:34:09 +0000 (12:34 +0200)
If the other peers had larger backoff times than the destroyed peer, the
backoff times weren't updated.

src/lib-http/http-client-peer.c

index d222eb386517dc55c2488767cf1f25637fc243db..12e73a16ea2e9f720815167f3a64d0501a44b3c8 100644 (file)
@@ -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;