Set read/write timeouts for IMAP sockets

This commit is contained in:
link2xt
2022-12-07 23:28:58 +00:00
parent 1224222984
commit 8aa73ed6ae
5 changed files with 32 additions and 3 deletions

11
Cargo.lock generated
View File

@@ -929,6 +929,7 @@ dependencies = [
"textwrap",
"thiserror",
"tokio",
"tokio-io-timeout",
"tokio-stream",
"tokio-tar",
"toml",
@@ -3550,6 +3551,16 @@ dependencies = [
"winapi",
]
[[package]]
name = "tokio-io-timeout"
version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "30b74022ada614a1b4834de765f9bb43877f910cc8ce4be40e89042c9223a8bf"
dependencies = [
"pin-project-lite",
"tokio",
]
[[package]]
name = "tokio-macros"
version = "1.8.0"