mirror of
https://github.com/curl/curl.git
synced 2026-07-29 09:05:22 +03:00
CURLOPT_MAXLIFETIME_CONN: make default 24 hours
Set a default value to only reuse existing connections if less than 24 hours old. This makes the TLS certificate check get redone for the new connection. An application can still set it to zero. Closes #18527
This commit is contained in:
parent
53f90cb3b5
commit
c184f464f7
3 changed files with 11 additions and 9 deletions
|
|
@ -488,7 +488,7 @@ CURLcode Curl_init_userdefined(struct Curl_easy *data)
|
|||
set->upkeep_interval_ms = CURL_UPKEEP_INTERVAL_DEFAULT;
|
||||
set->maxconnects = DEFAULT_CONNCACHE_SIZE; /* for easy handles */
|
||||
set->conn_max_idle_ms = 118 * 1000;
|
||||
set->conn_max_age_ms = 0;
|
||||
set->conn_max_age_ms = 24 * 3600 * 1000;
|
||||
set->http09_allowed = FALSE;
|
||||
set->httpwant = CURL_HTTP_VERSION_NONE
|
||||
;
|
||||
|
|
|
|||
|
|
@ -1390,9 +1390,9 @@ struct UserDefined {
|
|||
void *progress_client; /* pointer to pass to the progress callback */
|
||||
void *ioctl_client; /* pointer to pass to the ioctl callback */
|
||||
timediff_t conn_max_idle_ms; /* max idle time to allow a connection that
|
||||
is to be reused */
|
||||
is to be reused */
|
||||
timediff_t conn_max_age_ms; /* max time since creation to allow a
|
||||
connection that is to be reused */
|
||||
connection that is to be reused */
|
||||
curl_off_t filesize; /* size of file to upload, -1 means unknown */
|
||||
long low_speed_limit; /* bytes/second */
|
||||
long low_speed_time; /* number of seconds */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue