fix(peering): serve h2c on the cleartext listener (#143) #144
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/peering-h2c"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 reachespeering.Muxas ProtoMajor 2 instead of bouncing off the HTTP/1.1 listener. HTTP/1.1 traffic passes through untouched; TLS deployments keep ALPN. AddsTestMuxRoutesGRPCOverCleartextHTTP2— the real-TCP single-port test the loopback suite was missing. x/net moves from indirect to direct.