diff options
author | Lauri Kasanen <cand@gmx.com> | 2018-03-30 18:33:52 +0300 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-04-02 10:40:32 +0200 |
commit | 4073cd83b2f3bcf93f1ce7f5d567d22175bad9af (patch) | |
tree | eeee27d641e37738414d87e7bf1a716734b9776a /lib/http.c | |
parent | 28faaacee287b019bcf2961da3bf2f91d331bcbd (diff) |
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
Diffstat (limited to 'lib/http.c')
-rw-r--r-- | lib/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http.c b/lib/http.c index 29dcf6562..674e49665 100644 --- a/lib/http.c +++ b/lib/http.c @@ -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? |