Skip to content

CURLOPT_MAXFILESIZE: clarify this also works for on-going transfers#21582

Closed
bagder wants to merge 3 commits into
masterfrom
bagder/maxfile-docs
Closed

CURLOPT_MAXFILESIZE: clarify this also works for on-going transfers#21582
bagder wants to merge 3 commits into
masterfrom
bagder/maxfile-docs

Conversation

@bagder

@bagder bagder commented May 13, 2026

Copy link
Copy Markdown
Member

It was not really clear, but it has worked like this since 8.4.0 which now is a while.

It was not really clear, but it has worked like this since 8.4.0 which
now is a while.
@bagder bagder marked this pull request as ready for review May 13, 2026 07:01
@bagder bagder requested a review from Copilot May 13, 2026 07:04

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

Clarifies libcurl’s CURLOPT_MAXFILESIZE / CURLOPT_MAXFILESIZE_LARGE behavior so it’s clear the limit can abort both before a transfer starts (when size is known early) and during an ongoing transfer (when the limit is reached), reflecting the behavior since 8.4.0.

Changes:

  • Rewords the description to explain early-abort vs in-progress abort behavior more directly.
  • Adds a HISTORY note documenting the pre-8.4.0 behavior (no enforcement during in-progress transfers).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
docs/libcurl/opts/CURLOPT_MAXFILESIZE.md Updates option description for ongoing-transfer enforcement and adds a pre-8.4.0 history note.
docs/libcurl/opts/CURLOPT_MAXFILESIZE_LARGE.md Mirrors the same clarification and history note for the _LARGE variant.

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

Comment thread docs/libcurl/opts/CURLOPT_MAXFILESIZE.md Outdated
Comment thread docs/libcurl/opts/CURLOPT_MAXFILESIZE_LARGE.md Outdated
bagder and others added 2 commits May 13, 2026 09:09
language

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
language

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@bagder bagder closed this in 89f38c1 May 13, 2026
@bagder bagder deleted the bagder/maxfile-docs branch May 13, 2026 07:45
outcast36 pushed a commit to greearb/curl that referenced this pull request Jun 3, 2026
It was not really clear, but it has worked like this since 8.4.0 which
now is a while.

Closes curl#21582
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.

2 participants