]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: Add/fix default value comments in http_client_settings
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 26 Jun 2018 10:45:54 +0000 (13:45 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 26 Jun 2018 19:56:26 +0000 (19:56 +0000)
src/lib-http/http-client.h

index eee589bf21cce468e18198f1de3b901a199787cd..79b963ce982713c805a563e606ecc4586c444919 100644 (file)
@@ -26,6 +26,8 @@ struct http_client_settings {
           c) Otherwise, blocking gethostbyname() lookups are used. */
        struct dns_client *dns_client;
        const char *dns_client_socket_path;
+       /* How long to cache DNS records internally
+          (default = HTTP_CLIENT_DEFAULT_DNS_TTL_MSECS) */
        unsigned int dns_ttl_msecs;
 
        const struct ssl_iostream_settings *ssl;
@@ -84,9 +86,11 @@ struct http_client_settings {
         */
        unsigned int max_connect_attempts;
 
-       /* Initial backoff time; doubled at each connection failure */
+       /* Initial backoff time; doubled at each connection failure
+          (default = HTTP_CLIENT_DEFAULT_BACKOFF_TIME_MSECS) */
        unsigned int connect_backoff_time_msecs;
-       /* Maximum backoff time */
+       /* Maximum backoff time
+          (default = HTTP_CLIENT_DEFAULT_BACKOFF_MAX_TIME_MSECS) */
        unsigned int connect_backoff_max_time_msecs;
 
        /* response header limits */
@@ -99,7 +103,7 @@ struct http_client_settings {
         */
        unsigned int request_absolute_timeout_msecs;
        /* max time to wait for HTTP request to finish before retrying
-          (default = unlimited) */
+          (default = HTTP_CLIENT_DEFAULT_REQUEST_TIMEOUT_MSECS) */
        unsigned int request_timeout_msecs;
        /* max time to wait for connect() (and SSL handshake) to finish before
           retrying (default = request_timeout_msecs) */