mirror of
https://github.com/curl/curl.git
synced 2026-08-25 19:43:33 +03:00
multihandle: add an ssl_scache here
The TLS session cache is now held by the multi handle unless it is shared, so that all easy handles within a multi handle get the benefit of sharing the same, larger, cache. The multi handle session cache size is set to 25, unless it is the internal one used for the easy interface - which still uses only 3. Closes #15982
This commit is contained in:
parent
854e055a70
commit
cd43c92685
8 changed files with 29 additions and 29 deletions
|
|
@ -72,7 +72,6 @@
|
|||
#include "url.h"
|
||||
#include "getinfo.h"
|
||||
#include "vtls/vtls.h"
|
||||
#include "vtls/vtls_scache.h"
|
||||
#include "vquic/vquic.h"
|
||||
#include "select.h"
|
||||
#include "multiif.h"
|
||||
|
|
@ -567,14 +566,9 @@ CURLcode Curl_pretransfer(struct Curl_easy *data)
|
|||
data->state.url = data->set.str[STRING_SET_URL];
|
||||
|
||||
#ifdef USE_SSL
|
||||
if(!data->state.ssl_scache) {
|
||||
/* There was no ssl session cache set via a share, so we create
|
||||
* one just for this transfer alone. Most transfers talk to just
|
||||
* one host, but redirects may involve several occasionally. */
|
||||
result = Curl_ssl_scache_create(3, 2, &data->state.ssl_scache);
|
||||
if(result)
|
||||
return result;
|
||||
}
|
||||
if(!data->state.ssl_scache)
|
||||
/* There was no ssl session cache set via a share, use the multi one */
|
||||
data->state.ssl_scache = data->multi->ssl_scache;
|
||||
#endif
|
||||
|
||||
data->state.requests = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue