From e649432e7234dfe6905f4663bd0ce7b37ef2c5e7 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 14 Apr 2019 23:20:01 +0200 Subject: 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 --- include/curl/curl.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') 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; -- cgit v1.2.3