mirror of
https://github.com/curl/curl.git
synced 2026-07-25 06:27:16 +03:00
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
This commit is contained in:
parent
060f870b85
commit
e649432e72
10 changed files with 106 additions and 14 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue