Skip to content

tests: a cut-off answer is no answer, held against a real socket - #81

Merged
tmoosting merged 1 commit into
mainfrom
cut-body
Nov 28, 2026
Merged

tmoosting merged 1 commit into
mainfrom
cut-body

Conversation

@tmoosting

Copy link
Copy Markdown
Member

The default transport reads the whole body inside the request. So a body short of its Content-Length, or a chunked body with no last chunk, raises there, and the client answers ConnectionError as for a request that never arrived.

Nothing held that until now. This adds four cases against a one-request server on 127.0.0.1: the two cuts, and a whole answer either by its length or read to the close. A plant that handed back the partial body turned both cut cases red. No package change, so no release.

🤖 Generated with Claude Code

The default transport reads the whole body inside the request, so a body short of its Content-Length or a chunked body with no last chunk raises there and the client answers ConnectionError. Four cases on 127.0.0.1: the two cuts, and a whole answer by its length or read to the close. A plant that returned the partial body turned both cut cases red.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tmoosting
tmoosting merged commit 9f54bf7 into main Nov 28, 2026
11 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.

1 participant