mirror of
https://github.com/curl/curl.git
synced 2026-08-25 15:13:41 +03:00
CURLOPT_MAXLIFETIME_CONN: maximum allowed lifetime for conn reuse
... and close connections that are too old instead of reusing them. By default, this behavior is disabled. Bug: https://curl.se/mail/lib-2021-09/0058.html Closes #7751
This commit is contained in:
parent
013cb2ff7d
commit
5f563495f1
16 changed files with 272 additions and 12 deletions
|
|
@ -2058,7 +2058,8 @@ typedef enum {
|
|||
/* alt-svc cache file name to possibly read from/write to */
|
||||
CURLOPT(CURLOPT_ALTSVC, CURLOPTTYPE_STRINGPOINT, 287),
|
||||
|
||||
/* maximum age of a connection to consider it for reuse (in seconds) */
|
||||
/* maximum age (idle time) of a connection to consider it for reuse
|
||||
* (in seconds) */
|
||||
CURLOPT(CURLOPT_MAXAGE_CONN, CURLOPTTYPE_LONG, 288),
|
||||
|
||||
/* SASL authorisation identity */
|
||||
|
|
@ -2127,6 +2128,10 @@ typedef enum {
|
|||
/* Data passed to the CURLOPT_PREREQFUNCTION callback */
|
||||
CURLOPT(CURLOPT_PREREQDATA, CURLOPTTYPE_CBPOINT, 313),
|
||||
|
||||
/* maximum age (since creation) of a connection to consider it for reuse
|
||||
* (in seconds) */
|
||||
CURLOPT(CURLOPT_MAXLIFETIME_CONN, CURLOPTTYPE_LONG, 314),
|
||||
|
||||
CURLOPT_LASTENTRY /* the last unused */
|
||||
} CURLoption;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue