tool_operate: actually apply the --parallel-max-host limit

It was wrongly previously only used in debug code for event based
transfer and not in the "normal" parallel transfer case.

Follow-up to 4654493fed

Closes #21147
This commit is contained in:
Daniel Stenberg 2026-03-29 15:18:04 +02:00
parent 8f3f470bae
commit d87d4022aa
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1881,6 +1881,8 @@ static CURLcode parallel_transfers(CURLSH *share)
#endif
(void)curl_multi_setopt(s->multi, CURLMOPT_NOTIFYFUNCTION, mnotify);
(void)curl_multi_setopt(s->multi, CURLMOPT_NOTIFYDATA, s);
(void)curl_multi_setopt(s->multi, CURLMOPT_MAX_HOST_CONNECTIONS, (long)
global->parallel_host);
(void)curl_multi_notify_enable(s->multi, CURLMNOTIFY_INFO_READ);
result = add_parallel_transfers(s->multi, s->share,