Skip to content

bugfix: skip error parsing for 2xx responses on rejected promises#3320

Open
lazerg wants to merge 1 commit into
aws:masterfrom
lazerg:fix/issue-3319-2xx-error-parse
Open

bugfix: skip error parsing for 2xx responses on rejected promises#3320
lazerg wants to merge 1 commit into
aws:masterfrom
lazerg:fix/issue-3319-2xx-error-parse

Conversation

@lazerg

@lazerg lazerg commented Jul 7, 2026

Copy link
Copy Markdown

Issue #, if available:
closes #3319

Description of changes:
When a streamed download like GetObject with SaveAs fails mid-transfer after the server already sent a 200 status, WrappedHttpHandler::parseError still ran the response through the error parser, which reads the entire body into memory. For a large partial download that means buffering everything received so far, which can exhaust memory_limit on a transient network failure. This skips the error parser when the attached response status is under 300, the same check parseResponse already uses on the success path.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant