Skip to content

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

Closed
bagder wants to merge 1 commit into
masterfrom
bagder/max-host
Closed

bagder wants to merge 1 commit into
masterfrom
bagder/max-host

Conversation

@bagder

@bagder bagder commented Mar 29, 2026

Copy link
Copy Markdown
Member

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

Copilot AI left a comment

Copy link
Copy Markdown

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
outcast36 pushed a commit to greearb/curl that referenced this pull request Jun 3, 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

Closes curl#21147
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