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:
Alejandro Alvarez Ayllon
2011-11-17 23:34:38 +01:00
committed by Daniel Stenberg
parent 97b73fec7a
commit 35f61c404d
3 changed files with 18 additions and 5 deletions

View File

@@ -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;
}