aboutsummaryrefslogtreecommitdiff
path: root/include/curl/curl.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-04-14 23:20:01 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-04-21 23:06:23 +0200
commite649432e7234dfe6905f4663bd0ce7b37ef2c5e7 (patch)
treeec343333607d509a68fa8ad74cdb9833c1f380ba /include/curl/curl.h
parent060f870b85a6ee85668caeb791935fe98f4da56d (diff)
CURLOPT_MAXAGE_CONN: set the maximum allowed age for conn reuse
... and disconnect too old ones instead of trying to reuse. Default max age is set to 118 seconds. Ref: #3722 Closes #3782
Diffstat (limited to 'include/curl/curl.h')
-rw-r--r--include/curl/curl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index b1184fab5..75f780cd7 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -1918,6 +1918,9 @@ typedef enum {
/* alt-svc cache file name to possibly read from/write to */
CINIT(ALTSVC, STRINGPOINT, 287),
+ /* maximum age of a connection to consider it for reuse (in seconds) */
+ CINIT(MAXAGE_CONN, LONG, 288),
+
CURLOPT_LASTENTRY /* the last unused */
} CURLoption;