]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: Change http_client_request_max_attempts default to 1
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 5 Oct 2023 11:55:43 +0000 (14:55 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Feb 2025 10:34:10 +0000 (12:34 +0200)
The previous default 0 means the same as 1, but 1 is clearer.

src/lib-http/http-client-settings.c
src/lib-http/http-client.h

index b1b817373fd72ad02bad19dceb8e9e771b6124be..c71dbd62f14c1145c363538e37bbd9fe7d5f12e7 100644 (file)
@@ -94,7 +94,7 @@ static const struct http_client_settings http_client_default_settings = {
        .ssl_tunnel = TRUE,
 
        .request_max_redirects = 0,
-       .request_max_attempts = 0,
+       .request_max_attempts = 1,
        .read_request_max_attempts = 0,
        .write_request_max_attempts = 0,
        .delete_request_max_attempts = 0,
index 6598219043b00b944fde6e8d9f468d0cbba12d45..7a6830af23c46207f03e23ba2079748e2f5526d7 100644 (file)
@@ -79,7 +79,7 @@ struct http_client_settings {
         */
        unsigned int request_max_redirects;
 
-       /* Maximum number of attempts for a request */
+       /* Maximum number of attempts for a request. 0 means the same as 1. */
        unsigned int request_max_attempts;
        /* If non-zero, override max_attempts for GET/HEAD requests. */
        unsigned int read_request_max_attempts;