diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-04-14 23:20:01 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-04-21 23:06:23 +0200 |
commit | e649432e7234dfe6905f4663bd0ce7b37ef2c5e7 (patch) | |
tree | ec343333607d509a68fa8ad74cdb9833c1f380ba /include | |
parent | 060f870b85a6ee85668caeb791935fe98f4da56d (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')
-rw-r--r-- | include/curl/curl.h | 3 |
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; |