easy: Fix the broken CURLOPT_MAXCONNECTS option

Copy the CURLOPT_MAXCONNECTS option to CURLMOPT_MAXCONNECTS in
curl_easy_perform().

Bug: http://curl.haxx.se/bug/view.cgi?id=1212
Reported-by: Steven Gu
This commit is contained in:
Linus Nielsen Feltzing 2013-04-04 10:33:39 +02:00
parent 984e20d6bb
commit e87e76e2dc
5 changed files with 195 additions and 2 deletions

View file

@ -442,6 +442,9 @@ CURLcode curl_easy_perform(CURL *easy)
data->multi_easy = multi;
}
/* Copy the MAXCONNECTS option to the multi handle */
curl_multi_setopt(multi, CURLMOPT_MAXCONNECTS, data->set.maxconnects);
mcode = curl_multi_add_handle(multi, easy);
if(mcode) {
curl_multi_cleanup(multi);