Skip to content

Commit

Permalink
Update tokio-tungstenite (#3643)
Browse files Browse the repository at this point in the history
Co-authored-by: Coenen Benjamin <[email protected]>
  • Loading branch information
Geal and bnjjj authored Sep 11, 2023
1 parent 4a4b292 commit d0e9391
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 44 deletions.
47 changes: 7 additions & 40 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ dependencies = [
"tokio",
"tokio-rustls 0.24.1",
"tokio-stream",
"tokio-tungstenite 0.18.0",
"tokio-tungstenite",
"tokio-util",
"toml 0.7.6",
"tonic 0.8.3",
Expand Down Expand Up @@ -972,7 +972,7 @@ dependencies = [
"sha1 0.10.5",
"sync_wrapper",
"tokio",
"tokio-tungstenite 0.20.0",
"tokio-tungstenite",
"tower",
"tower-layer",
"tower-service",
Expand Down Expand Up @@ -6374,22 +6374,6 @@ dependencies = [
"tokio-stream",
]

[[package]]
name = "tokio-tungstenite"
version = "0.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "54319c93411147bced34cb5609a80e0a8e44c5999c93903a81cd866630ec0bfd"
dependencies = [
"futures-util",
"log",
"rustls 0.20.8",
"rustls-native-certs",
"tokio",
"tokio-rustls 0.23.4",
"tungstenite 0.18.0",
"webpki",
]

[[package]]
name = "tokio-tungstenite"
version = "0.20.0"
Expand All @@ -6398,8 +6382,11 @@ checksum = "2b2dbec703c26b00d74844519606ef15d09a7d6857860f84ad223dec002ddea2"
dependencies = [
"futures-util",
"log",
"rustls 0.21.6",
"rustls-native-certs",
"tokio",
"tungstenite 0.20.0",
"tokio-rustls 0.24.1",
"tungstenite",
]

[[package]]
Expand Down Expand Up @@ -6778,27 +6765,6 @@ dependencies = [
"syn 2.0.29",
]

[[package]]
name = "tungstenite"
version = "0.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "30ee6ab729cd4cf0fd55218530c4522ed30b7b6081752839b68fcec8d0960788"
dependencies = [
"base64 0.13.1",
"byteorder",
"bytes",
"http",
"httparse",
"log",
"rand 0.8.5",
"rustls 0.20.8",
"sha1 0.10.5",
"thiserror",
"url",
"utf-8",
"webpki",
]

[[package]]
name = "tungstenite"
version = "0.20.0"
Expand All @@ -6812,6 +6778,7 @@ dependencies = [
"httparse",
"log",
"rand 0.8.5",
"rustls 0.21.6",
"sha1 0.10.5",
"thiserror",
"url",
Expand Down
4 changes: 1 addition & 3 deletions apollo-router/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,7 @@ uuid = { version = "1.4.1", features = ["serde", "v4"] }
yaml-rust = "0.4.5"
wiremock = "0.5.19"
wsl = "0.1.0"
tokio-tungstenite = { version = "0.18.0", features = [
"rustls-tls-native-roots",
] }
tokio-tungstenite = { version = "0.20.0", features = ["rustls-tls-native-roots"] }
tokio-rustls = "0.24.1"
http-serde = "1.1.3"
hmac = "0.12.1"
Expand Down
2 changes: 1 addition & 1 deletion apollo-router/src/services/subgraph_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ async fn call_websocket(

let (ws_stream, mut resp) = match request.uri().scheme_str() {
Some("wss") => {
connect_async_tls_with_config(request, None, None)
connect_async_tls_with_config(request, None, false, None)
.instrument(subgraph_req_span)
.await
}
Expand Down

0 comments on commit d0e9391

Please sign in to comment.