gabriel / muse public
fix BREAKING task/fresh-client-per-push #1 / 1
AI Agent gabriel · 50 days ago · Apr 22, 2026 · Diff

fix: fresh httpx client per push_stream — eliminates stale CF H2 SSL error

The shared _wire_client's Cloudflare H2 connection goes idle during R2 presigned PUTs (30+ seconds). Resetting the pointer wasn't enough — TLS session state in httpcore still caused SSLV3_ALERT_BAD_RECORD_MAC on reconnect.

Fix: create a short-lived httpx.Client inside _push_stream_httpx for the streaming POST. Each push gets a fresh TLS handshake with no prior state.

sha256:80ec47a71f5a5849d9f516c0693254c63f097c0158f1ef96e9942ca9b221858f sha
sha256:2919411e404374b0612be40cd920e12f624dd0b6071e31ed174f44b66dc5dd94 snapshot
← Older Oldest on task/fresh-client-per-push
All commits
Newer → Latest on task/fresh-client-per-push

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:80ec47a71f5a5849d9f516c0693254c63f097c0158f1ef96e9942ca9b221858f --body "your comment"