-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
Description
ZapRPC currently speaks QUIC only. In environments where UDP/QUIC is blocked or load balancers/ingress are TCP/HTTP-only, calls fail. Add an HTTP/2 fallback so the same RPC layer (services, codecs, envelopes) works over both QUIC (UDP) and HTTP/2 (TCP/TLS)—with an AUTO mode on the client that tries QUIC first, then falls back to H2.
Expected Work
- Introduce a transport abstraction so zaprpc can run over QUIC or HTTP/2.
- Modify Client and Server configs to accommodate this change.
- Provide a client AUTO mode: try QUIC; if dial/handshake fails or times out, retry on HTTP/2.
- Provide a server dual-listener option (QUIC + HTTP/2 on separate sockets/ports or behind the same cert).
- Test your changes with the
testingpackage.