fix
patch
wire
task/wire-streaming-request
#1 / 1
fix(wire): stream request body instead of buffering in push_stream
Replace 'await request.body()' + wrapper generator with 'request.stream()' in the push_stream route. This eliminates Cloudflare's full-body buffering before forwarding to origin — the root cause of bad_record_mac TLS errors on large pushes. Chunks now forward as they arrive, matching HTTP/2 intent.
Tests: test_wire_streaming_push.py S1/S2 static checks verify the fix is present in source; S3/S4 are integration tests requiring a live server.
sha256:7f9d6b5ffaabcda978649f879107b2908b0791eb1edb699ffadcc5bccc436f52
sha
+32
~1
symbols
sha256:cebb0d94b19426fdaa579e105ccfd356aff9dbc99872aff8580c5d876c5475b8
snapshot
+32
symbols added
~1
symbol modified
0
dead code introduced
Semantic Changes
33 symbols
+
test_s1_push_stream_route_does_not_call_request_body
function
function test_s1_push_stream_route_does_not_call_request_body L108–122
+
test_s2_push_stream_route_uses_request_stream
function
function test_s2_push_stream_route_uses_request_stream L129–138
+
test_s3_valid_push_still_succeeds_with_streaming
function
async_function test_s3_valid_push_still_succeeds_with_streaming L146–173
+
test_s4_auth_checked_before_stream_consumed
function
async_function test_s4_auth_checked_before_stream_consumed L181–212
← Older
Oldest on task/wire-streaming-request
All commits
Newer →
Latest on task/wire-streaming-request
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:7f9d6b5ffaabcda978649f879107b2908b0791eb1edb699ffadcc5bccc436f52 --body "your comment"
No comments yet. Be the first to start the discussion.