mirror of
https://github.com/curl/curl.git
synced 2026-08-25 22:13:33 +03:00
SSL session share: move the age counter to the share object
Previously the age counter would be counted individually in each easy handle that shared SSL sessions!
This commit is contained in:
parent
97b73fec7a
commit
35f61c404d
3 changed files with 18 additions and 5 deletions
|
|
@ -91,6 +91,7 @@ curl_share_setopt(CURLSH *sh, CURLSHoption option, ...)
|
|||
share->nsslsession = 8;
|
||||
share->sslsession = calloc(share->nsslsession,
|
||||
sizeof(struct curl_ssl_session));
|
||||
share->sessionage = 0;
|
||||
if(!share->sslsession)
|
||||
return CURLSHE_NOMEM;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue