-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
websocket problem with ssl(h2) #1069
Comments
Is this actix-web client error? |
yes. it's the |
I am also suffering from the same issue.
And posted in the gitter chat now before I saw this. |
#1006 would probably help |
Same issue here. Versions:
Code:
|
Use custom connector to force HTTP 1.1 only in ALPN extension:
|
If you're using |
Same issue here. Snippet: let client = awc::Client::new();
client
.ws("wss://[URL here]")
.connect()
.await; Versions in Cargo.toml: actix-rt = "1.0"
awc = { version = "1.0", features = [ "rustls" ] } |
Websockets must use http/1.1 as long as RFC8441 is not implemented. I assume we are waiting for hyperium/h2#347? Firefox seems to support it by default. Roughly this should be the code for Rustls:
|
This works |
You can just use this API to set max http version instead of constructing connector yourself. let client = awc::Client::builder()
.max_http_version(awc::http::Version::HTTP_11)
.finish(); |
We ran into issues with HTTP2 tunneling, so we need to limit the connection to http1.1. As per: actix/actix-web#1069.
i have a running actix server based on the websocket-chat example. everything works fine. but when i add ssl support, i can't connect with a client based on examples/websocket/src/client.rs. i get an error "Error: Tunnels are not supported for http2 connection". the browsers still work fine with h2. without ssl chrome is using http 1.1, with it h2. i now there was some problem with the websocket/h2 story in the past...
is there a way around this, or a way to force HttpServer or Client to use http 1.1 ?
The text was updated successfully, but these errors were encountered: