Skip to content

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

Closed
bagder wants to merge 1 commit intomasterfrom
bagder/max-host
Closed

tool_operate: actually apply the --parallel-max-host limit#21147
bagder wants to merge 1 commit intomasterfrom
bagder/max-host

Conversation

@bagder
Copy link
Copy Markdown
Member

@bagder bagder commented Mar 29, 2026

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

Follow-up to 4654493

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

Follow-up to 4654493
@bagder bagder marked this pull request as ready for review March 29, 2026 13:20
@bagder bagder requested a review from Copilot March 29, 2026 13:41
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes curl tool parallel mode so the --parallel-max-host setting is actually enforced in the normal (poll/perform) parallel-transfer loop, not only in the debug-only event-based (libuv) path.

Changes:

  • Apply CURLMOPT_MAX_HOST_CONNECTIONS on the multi handle in parallel_transfers().
  • Align behavior between the regular parallel codepath and the event-based debug path.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bagder bagder closed this in d87d402 Mar 29, 2026
@bagder bagder deleted the bagder/max-host branch March 29, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants