Skip to content

Force HTTP/1.1 ALPN for websocket TLS#30

Merged
fannnzhang merged 2 commits intomainfrom
fix/websocket-http1-alpn
May 8, 2026
Merged

Force HTTP/1.1 ALPN for websocket TLS#30
fannnzhang merged 2 commits intomainfrom
fix/websocket-http1-alpn

Conversation

@fannnzhang
Copy link
Copy Markdown
Contributor

@fannnzhang fannnzhang commented May 8, 2026

Summary

  • thread a websocket-specific TLS ALPN hint through call context
  • make the Rustls connector force http/1.1 ALPN for websocket TLS handshakes
  • add focused regression coverage for websocket handshakes against servers that prefer h2

Validation

  • cargo test -p openwire --features websocket websocket_tls_uses_http11_alpn_when_server_prefers_h2 -- --exact
  • cargo test -p openwire-core
  • cargo test -p openwire-rustls
  • cargo test -p openwire --features websocket injects_websocket_handshake_headers --lib

@fannnzhang fannnzhang merged commit 4f1f96e into main May 8, 2026
6 checks passed
@fannnzhang fannnzhang deleted the fix/websocket-http1-alpn branch May 8, 2026 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant