Skip to content

Commit

Permalink
chore(deps): add cargo dependencies needed for axum timeouts
Browse files Browse the repository at this point in the history
We want to add timeouts for the Axum server configuration, in order to
close HTTP connections when the client doesn't send any request after
opening a HTTP connection.
  • Loading branch information
josecelano committed May 15, 2024
1 parent 8dc0520 commit dadc216
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,17 @@ derive_more = "0"
fern = "0"
figment = "0.10.18"
futures = "0"
futures-util = "0.3.30"
hex-literal = "0"
http-body = "1.0.0"
hyper = "1"
hyper-util = { version = "0.1.3", features = ["http1", "http2", "tokio"] }
lazy_static = "1"
log = { version = "0", features = ["release_max_level_info"] }
multimap = "0"
parking_lot = "0.12.1"
percent-encoding = "2"
pin-project-lite = "0.2.14"
r2d2 = "0"
r2d2_mysql = "24"
r2d2_sqlite = { version = "0", features = ["bundled"] }
Expand All @@ -72,6 +76,7 @@ torrust-tracker-contrib-bencode = { version = "3.0.0-alpha.12-develop", path = "
torrust-tracker-located-error = { version = "3.0.0-alpha.12-develop", path = "packages/located-error" }
torrust-tracker-primitives = { version = "3.0.0-alpha.12-develop", path = "packages/primitives" }
torrust-tracker-torrent-repository = { version = "3.0.0-alpha.12-develop", path = "packages/torrent-repository" }
tower = { version = "0.4.13", features = ["timeout"] }
tower-http = { version = "0", features = ["compression-full", "cors", "propagate-header", "request-id", "trace"] }
trace = "0"
tracing = "0"
Expand Down
4 changes: 4 additions & 0 deletions cSpell.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"downloadedi",
"dtolnay",
"elif",
"Eray",
"filesd",
"flamegraph",
"Freebox",
Expand All @@ -73,6 +74,7 @@
"intervali",
"Joakim",
"kallsyms",
"Karatay",
"kcachegrind",
"kexec",
"keyout",
Expand Down Expand Up @@ -107,6 +109,7 @@
"Pando",
"peekable",
"peerlist",
"programatik",
"proot",
"proto",
"Quickstart",
Expand Down Expand Up @@ -137,6 +140,7 @@
"sharktorrent",
"SHLVL",
"skiplist",
"slowloris",
"socketaddr",
"sqllite",
"subsec",
Expand Down

0 comments on commit dadc216

Please sign in to comment.