Sterling Hughes brings the share interface

This commit is contained in:
Daniel Stenberg
2002-08-13 14:20:47 +00:00
parent 8b3f1cebda
commit 6dfe0ec31e
6 changed files with 279 additions and 5 deletions

View File

@@ -178,6 +178,10 @@ CURLcode Curl_close(struct SessionHandle *data)
Curl_SSL_Close_All(data);
#endif
/* No longer a dirty share, if it exists */
if (data->share)
data->share->dirty--;
if(data->state.auth_host)
free(data->state.auth_host);
@@ -1032,6 +1036,18 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
data->set.no_signal = va_arg(param, long) ? TRUE : FALSE;
break;
case CURLOPT_SHARE:
{
curl_share *set;
set = va_arg(param, curl_share *);
if(data->share)
data->share->dirty--;
data->share = set;
data->share->dirty++;
}
break;
default:
/* unknown tag and its companion, just ignore: */
return CURLE_FAILED_INIT; /* correct this */