fix(peering): serve h2c on the cleartext listener (#143) #144

Merged
Cordy merged 1 commit from fix/peering-h2c into main 2026-08-09 01:06:33 +00:00
Owner

Closes #143. Wraps the root handler in h2c.NewHandler(root, &http2.Server{}) so prior-knowledge HTTP/2 (what the peering client speaks to plain-HTTP LAN peers) actually reaches peering.Mux as ProtoMajor 2 instead of bouncing off the HTTP/1.1 listener. HTTP/1.1 traffic passes through untouched; TLS deployments keep ALPN. Adds TestMuxRoutesGRPCOverCleartextHTTP2 — the real-TCP single-port test the loopback suite was missing. x/net moves from indirect to direct.

Closes #143. Wraps the root handler in `h2c.NewHandler(root, &http2.Server{})` so prior-knowledge HTTP/2 (what the peering client speaks to plain-HTTP LAN peers) actually reaches `peering.Mux` as ProtoMajor 2 instead of bouncing off the HTTP/1.1 listener. HTTP/1.1 traffic passes through untouched; TLS deployments keep ALPN. Adds `TestMuxRoutesGRPCOverCleartextHTTP2` — the real-TCP single-port test the loopback suite was missing. x/net moves from indirect to direct.
fix(peering): serve h2c on the cleartext listener so single-port gRPC works over plain HTTP (#143)
All checks were successful
ci / test-and-build (pull_request) Successful in 32s
7b177dc511
Cordy merged commit 5a00c87945 into main 2026-08-09 01:06:33 +00:00
Cordy deleted branch fix/peering-h2c 2026-08-09 01:06:36 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Cordy/Cairn#144
No description provided.