mirror of
https://github.com/curl/curl.git
synced 2026-07-24 14:27:16 +03:00
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:
parent
984e20d6bb
commit
e87e76e2dc
5 changed files with 195 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue