Files
codex/codex-rs
richardopenai c8d1ba814e Add HTTP/2 fallback for SSH tunnels (#61964)
## Why

SSH tunnels need a working transport when UDP is blocked or a QUIC connection cannot complete an HTTP/3 CONNECT request.

## What changed

- Race TLS HTTP/2 CONNECT against HTTP/3 after a 250 ms QUIC head start, selecting the first successful CONNECT response.
- Verify the gateway before obtaining credentials, treat CONNECT rejection as terminal, and include admission in the setup timeout.
- Preserve bounded buffering, TCP half-close behavior, and SSH exit on remote EOF over HTTP/2. Keep peer-supplied debug text out of SSH errors.

## Testing

Add local TLS HTTP/2 and HTTP/3 peer tests for transport selection, blocked UDP, stalled HTTP/3, terminal rejection, setup deadlines, certificate verification, address retries, and bidirectional forwarding with both half-close orders.

GitOrigin-RevId: a1cde88dff7a4e5e6574cf12eacb453551f01b72
2026-11-17 04:41:39 +00:00
..
…
…
…
…