Skip to content

Prevent chunked requests from being reported complete after a failed write - #1541

Merged
arturobernalg merged 1 commit into
apache:masterfrom
arturobernalg:classic-to-async-truncation-fix
Nov 29, 2026
Merged

arturobernalg merged 1 commit into
apache:masterfrom
arturobernalg:classic-to-async-truncation-fix

Conversation

@arturobernalg

Copy link
Copy Markdown
Member

ClassicToAsyncRequestProducer closed the output stream in a try-with-resources around entity.writeTo(), so a partial failure still marked the stream complete and the server saw a clean end instead of a truncated body. Abort the buffer instead of closing it, and make SharedOutputBuffer#flush fail once aborted instead of silently propagating end-of-stream (same bug class as efb46e4, in the async bridge).

…write

ClassicToAsyncRequestProducer closed the output stream in a try-with-resources around entity.writeTo(), so a partial failure still marked the stream complete and the server saw a clean end instead of a truncated body. Abort the buffer instead of closing it, and make SharedOutputBuffer#flush fail once aborted instead of silently propagating end-of-stream (same bug class as efb46e4, in the async bridge).
@arturobernalg
arturobernalg requested a review from ok2c November 29, 2026 07:35
@ok2c ok2c added this to the 5.5.1 milestone Nov 29, 2026
@arturobernalg
arturobernalg merged commit 07267dd into apache:master Nov 29, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants