From a6999f377ee0181faef38cf9c4981f169b9ed0dc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Feb 2022 10:40:42 +0200 Subject: [PATCH] chore(deps): bump tokio-tungstenite from 0.16.1 to 0.17.1 (#945) * chore(deps): bump tokio-tungstenite from 0.16.1 to 0.17.1 Bumps [tokio-tungstenite](https://github.com/snapview/tokio-tungstenite) from 0.16.1 to 0.17.1. - [Release notes](https://github.com/snapview/tokio-tungstenite/releases) - [Changelog](https://github.com/snapview/tokio-tungstenite/blob/master/CHANGELOG.md) - [Commits](https://github.com/snapview/tokio-tungstenite/compare/v0.16.1...v0.17.1) --- updated-dependencies: - dependency-name: tokio-tungstenite dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * fix: no-op raw websocket frames Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Georgios Konstantopoulos --- Cargo.lock | 16 +++++++--------- ethers-providers/Cargo.toml | 2 +- ethers-providers/src/transports/ws.rs | 1 + 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f4eab334..eab70a36 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3356,15 +3356,13 @@ dependencies = [ [[package]] name = "sha-1" -version = "0.9.8" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99cd6713db3cf16b6c84e06321e049a9b9f699826e16096d23bbcc44d15d51a6" +checksum = "028f48d513f9678cda28f6e4064755b3fbb2af6acd672f2c209b62323f7aea0f" dependencies = [ - "block-buffer 0.9.0", "cfg-if 1.0.0", "cpufeatures", - "digest 0.9.0", - "opaque-debug 0.3.0", + "digest 0.10.3", ] [[package]] @@ -3815,9 +3813,9 @@ dependencies = [ [[package]] name = "tokio-tungstenite" -version = "0.16.1" +version = "0.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e80b39df6afcc12cdf752398ade96a6b9e99c903dfdc36e53ad10b9c366bca72" +checksum = "06cda1232a49558c46f8a504d5b93101d42c0bf7f911f12a105ba48168f821ae" dependencies = [ "futures-util", "log", @@ -3969,9 +3967,9 @@ checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642" [[package]] name = "tungstenite" -version = "0.16.0" +version = "0.17.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ad3713a14ae247f22a728a0456a545df14acf3867f905adff84be99e23b3ad1" +checksum = "d96a2dea40e7570482f28eb57afbe42d97551905da6a9400acc5c328d24004f5" dependencies = [ "base64 0.13.0", "byteorder", diff --git a/ethers-providers/Cargo.toml b/ethers-providers/Cargo.toml index f119895e..35d1dec3 100644 --- a/ethers-providers/Cargo.toml +++ b/ethers-providers/Cargo.toml @@ -44,7 +44,7 @@ bytes = { version = "1.1.0", default-features = false, optional = true } # tokio tokio-util = { version = "0.7.0", default-features = false, features = ["io"], optional = true } tokio = { version = "1.5", default-features = false, optional = true } -tokio-tungstenite = { version = "0.16.1", default-features = false, features = ["connect"], optional = true } +tokio-tungstenite = { version = "0.17.1", default-features = false, features = ["connect"], optional = true } [target.'cfg(target_arch = "wasm32")'.dependencies] ws_stream_wasm = "0.7" diff --git a/ethers-providers/src/transports/ws.rs b/ethers-providers/src/transports/ws.rs index fc1ae882..ba27729b 100644 --- a/ethers-providers/src/transports/ws.rs +++ b/ethers-providers/src/transports/ws.rs @@ -366,6 +366,7 @@ where async fn handle(&mut self, resp: Message) -> Result<(), ClientError> { match resp { Message::Text(inner) => self.handle_text(inner).await, + Message::Frame(_) => Ok(()), // Server is allowed to send Raw frames Message::Ping(inner) => self.handle_ping(inner).await, Message::Pong(_) => Ok(()), // Server is allowed to send unsolicited pongs. Message::Close(Some(frame)) => Err(ClientError::WsClosed(frame)),