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:
committed by
Daniel Stenberg
parent
97b73fec7a
commit
35f61c404d
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user