Skip to content

simple_httpclient: Send the body only once on repeated 100 Continue - #3938

Merged
bdarnell merged 1 commit into
tornadoweb:masterfrom
bdarnell:claude/project-thread-tw5f9a
Nov 25, 2026
Merged

bdarnell merged 1 commit into
tornadoweb:masterfrom
bdarnell:claude/project-thread-tw5f9a

Conversation

@bdarnell

Copy link
Copy Markdown
Member

With expect_100_continue=True, every 100 Continue response re-ran _write_body: the body_producer was called again and the body written again, followed by a second chunked terminator. With a Content-Length the second write failed and the request ended in a 599. RFC 9110 allows a server to send more than one 1xx response, so only the first 100 Continue now releases the body.

Claude-Session: https://claude.ai/code/session_01VamvWoibTKx2YUrhCJprVK

With expect_100_continue=True, every 100 Continue response re-ran
_write_body: the body_producer was called again and the body written
again, followed by a second chunked terminator. With a Content-Length
the second write failed and the request ended in a 599. RFC 9110
allows a server to send more than one 1xx response, so only the
first 100 Continue now releases the body.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VamvWoibTKx2YUrhCJprVK
@bdarnell
bdarnell merged commit 3b91254 into tornadoweb:master Nov 25, 2026
23 checks passed
@bdarnell
bdarnell deleted the claude/project-thread-tw5f9a branch November 25, 2026 19:17
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