summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-04-19 17:06:50 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-04-19 17:06:50 +0200
commit3da17b2b14e0537c9d326acb0310c9e3d6cb3130 (patch)
tree5b8733874d73360779405cef434566184cce4f3e
parentd5a39d348db9b39a2ced28509f300a255ea4173e (diff)
downloadcurl-bagder/maxage-reuse-conn.tar.gz
fixup change default max age to 118 secondsbagder/maxage-reuse-conn
-rw-r--r--docs/libcurl/opts/CURLOPT_MAXAGE_CONN.32
-rw-r--r--lib/url.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/libcurl/opts/CURLOPT_MAXAGE_CONN.3 b/docs/libcurl/opts/CURLOPT_MAXAGE_CONN.3
index 5f060ca9d..f91bf7a8d 100644
--- a/docs/libcurl/opts/CURLOPT_MAXAGE_CONN.3
+++ b/docs/libcurl/opts/CURLOPT_MAXAGE_CONN.3
@@ -41,7 +41,7 @@ due to the difficulties to figure out the situation. If a connection is found
in the cache that is older than this set \fImaxage\fP, it will instead be
closed.
.SH DEFAULT
-Default maxage is 120 seconds.
+Default maxage is 118 seconds.
.SH PROTOCOLS
All
.SH EXAMPLE
diff --git a/lib/url.c b/lib/url.c
index 308d5af28..dedfafb1f 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -541,7 +541,7 @@ CURLcode Curl_init_userdefined(struct Curl_easy *data)
set->fnmatch = ZERO_NULL;
set->upkeep_interval_ms = CURL_UPKEEP_INTERVAL_DEFAULT;
set->maxconnects = DEFAULT_CONNCACHE_SIZE; /* for easy handles */
- set->maxage_conn = 120;
+ set->maxage_conn = 118;
set->http09_allowed = TRUE;
set->httpversion =
#ifdef USE_NGHTTP2