Impose a timeout on writing RPC messages

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld
2021-11-22 13:23:55 -08:00
co-authored by Nathan Sobo
parent 447f710570
commit 7474813a17
4 changed files with 82 additions and 105 deletions
Generated
+11
View File
@@ -4308,6 +4308,7 @@ dependencies = [
"rsa",
"serde 1.0.125",
"smol",
"smol-timeout",
"tempdir",
"zstd",
]
@@ -4867,6 +4868,16 @@ dependencies = [
"once_cell",
]
[[package]]
name = "smol-timeout"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "847d777e2c6c166bad26264479e80a9820f3d364fcb4a0e23cd57bbfa8e94961"
dependencies = [
"async-io",
"pin-project-lite 0.1.12",
]
[[package]]
name = "socket2"
version = "0.3.19"