]> 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)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Mon, 30 Jul 2018 06:55:30 +0000 (09:55 +0300)
src/lib-http/http-client.h

index 7c530f504962ce7062535c96cdd2ad5a1efd329c..1edfe3d0b7b208554633165ce23234d770e9e17a 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) */