mirror of
https://github.com/curl/curl.git
synced 2026-08-24 14:33:33 +03:00
cookies: when reading from a file, only remove_expired once
This drops the cookie load time for 8k cookies from 178ms to 15ms. Closes #2441
This commit is contained in:
parent
28faaacee2
commit
4073cd83b2
4 changed files with 12 additions and 6 deletions
|
|
@ -3734,7 +3734,7 @@ CURLcode Curl_http_readwrite_headers(struct Curl_easy *data,
|
|||
Curl_share_lock(data, CURL_LOCK_DATA_COOKIE,
|
||||
CURL_LOCK_ACCESS_SINGLE);
|
||||
Curl_cookie_add(data,
|
||||
data->cookies, TRUE, k->p + 11,
|
||||
data->cookies, TRUE, FALSE, k->p + 11,
|
||||
/* If there is a custom-set Host: name, use it
|
||||
here, or else use real peer host name. */
|
||||
conn->allocptr.cookiehost?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue