Skip to content

#1116 end chunked request body in BkBasic - #1826

Merged
yegor256 merged 1 commit into
masterfrom
1116
Nov 5, 2026
Merged

yegor256 merged 1 commit into
masterfrom
1116

Conversation

@yegor256

@yegor256 yegor256 commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Closes #1116

BkBasic already caps the body by Content-Length, but a chunked body was still the raw socket stream, so read() blocked after the last chunk until the client gave up. The body is now decoded with RqChunk as well, and an unread chunked body is drained before the next request on the connection.

The new test sends a chunked request, keeps the socket open, and fails with a read timeout without the change.

Smell, left alone: ChunkedInputStream does not consume the CRLF after the last chunk, so a keep-alive connection sees it as the start of the next request.

🤖 Generated with Claude Code

…cket close

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 5, 2026 05:27

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@yegor256
yegor256 merged commit c4c5a10 into master Nov 5, 2026
9 checks passed
@yegor256
yegor256 deleted the 1116 branch November 5, 2026 05:32
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