Skip to content

Fix truncated replies on short add() - #499

Merged
mathieucarbou merged 2 commits into
mainfrom
497-fix-truncated-replies
Oct 24, 2026
Merged

mathieucarbou merged 2 commits into
mainfrom
497-fix-truncated-replies

Conversation

@willmmiles

Copy link
Copy Markdown

Fix AsyncAbstractResponse handling when the last block of data read is unable to be completely queued to the TCP socket. Instead of moving directly to RESPONSE_STATE_END, hold the response in RESPONSE_WAIT_ACK until the last block has been accepted.

Ref: #497

We no longer use RESPONSE_WAIT_ACK in built-in responses; remove the
unnecessary checks.
Correct state tracking so the connection isn't closed until its queued
to the TCP socket.

@mathieucarbou mathieucarbou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I understand the fix and it is better indeed.

@mathieucarbou mathieucarbou added the Type: Bug Something isn't working label Oct 24, 2026
@mathieucarbou
mathieucarbou merged commit 3e82682 into main Oct 24, 2026
39 checks passed
@mathieucarbou
mathieucarbou deleted the 497-fix-truncated-replies branch October 24, 2026 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Status: Pending Merge Type: Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants