Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

fix, win crash, tokio 1.28.1 to 1.33.0, revert

fufesou967515a34f89
diff --git a/Cargo.lock b/Cargo.lock
index 4006a0a46..01f6570dc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5718,16 +5718,6 @@ dependencies = [
"winapi 0.3.9",
]
-[[package]]
-name = "socket2"
-version = "0.5.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7b5fac59a5cb5dd637972e5fca70daf0523c9067fcdc4842f053dae04a18f8e9"
-dependencies = [
- "libc",
- "windows-sys 0.48.0",
-]
-
[[package]]
name = "sodiumoxide"
version = "0.2.7"
@@ -6185,11 +6175,11 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
[[package]]
name = "tokio"
-version = "1.33.0"
+version = "1.28.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4f38200e3ef7995e5ef13baec2f432a6da0aa9ac495b2c0e8f3b7eec2c92d653"
+checksum = "0aa32867d44e6f2ce3385e89dceb990188b8bb0fb25b0cf576647a6f98ac5105"
dependencies = [
- "backtrace",
+ "autocfg 1.1.0",
"bytes",
"libc",
"mio",
@@ -6197,7 +6187,7 @@ dependencies = [
"parking_lot",
"pin-project-lite",
"signal-hook-registry",
- "socket2 0.5.5",
+ "socket2 0.4.10",
"tokio-macros",
"windows-sys 0.48.0",
]
diff --git a/libs/hbb_common/Cargo.toml b/libs/hbb_common/Cargo.toml
index 5c93ccd04..eb5dde257 100644
--- a/libs/hbb_common/Cargo.toml
+++ b/libs/hbb_common/Cargo.toml
@@ -9,7 +9,7 @@ edition = "2018"
[dependencies]
flexi_logger = { version = "0.25", features = ["async"] }
protobuf = { version = "3.2", features = ["with-bytes"] }
-tokio = { version = "1.28", features = ["full"] }
+tokio = { version = "=1.28.1", features = ["full"] }
tokio-util = { version = "0.7", features = ["full"] }
futures = "0.3"
bytes = { version = "1.4", features = ["serde"] }