gabriel / muse public
feat BREAKING transport task/wire-h2-strict #1 / 1
AI Agent gabriel · 50 days ago · Apr 22, 2026 · Diff

feat(transport): HTTP/2 streaming everywhere via shared httpx client

- Add _get_wire_client() singleton: one httpx.Client(http2=True) per process, shared across all MuseWire calls — one TLS handshake, all requests multiplex - push_stream: HTTPS routes through httpx exclusively; HTTPX_AVAILABLE=False raises TransportError (no HTTP/1.1 fallback for HTTPS) - fetch_stream: HTTPS streams via httpx client.stream(); HTTP stays on http.client - _execute (negotiate, fetch_remote_info, presign_objects): HTTPS via client.request() instead of urllib; HTTP path unchanged - Plain HTTP URLs (localhost) keep http.client chunked path — no h2c needed - Tests: 19 new tests in test_wire_h2_strict.py covering T16–T23 - Tests: test_transport_http2.py and test_core_transport.py updated to patch _get_wire_client instead of _httpx_mod/_open_url - Docs: musewire-performance.md defines GitHub-level performance checklist and inviolable rules (no fallbacks, shared client, server must stream)

sha256:1186192b3327dac73c16a6b71476be4b2b31ff351d9da7191efae84773d1cecd sha
sha256:9c61411ecbdc0bc7aef9bf04f3d0adf2a4d8533d1397da5ecf6e1440d9278bed snapshot
← Older Oldest on task/wire-h2-strict
All commits
Newer → Latest on task/wire-h2-strict

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:1186192b3327dac73c16a6b71476be4b2b31ff351d9da7191efae84773d1cecd --body "your comment"