Skip to content

Commit 3c3822f

Browse files
dvushZanCorDX
andauthored
move websocket feed to async and add read timeout (#55)
* move websocket feed to async and add read timeout This fix prevents processes from hanging indefinitely while waiting for reads on dead connections. Previously, these processes would remain stuck until terminated by the watchdog. * lint --------- Co-authored-by: Daniel Xifra <[email protected]>
1 parent 5ca9895 commit 3c3822f

File tree

6 files changed

+304
-120
lines changed

6 files changed

+304
-120
lines changed

Cargo.lock

Lines changed: 99 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ jsonrpsee = { version = "0.20.3", features = ["full"] }
3232
tracing = "0.1.37"
3333
time = { version = "0.3.36", features = ["macros", "formatting", "parsing"] }
3434
thiserror = "1.0.64"
35-
tungstenite = "0.23.0"
3635
ahash = "0.8.6"
3736
itertools = "0.11.0"
3837
rand = "0.8.5"
@@ -62,6 +61,8 @@ metrics_macros = { git = "https://github.com/flashbots/rbuilder.git", rev = "22
6261

6362
#rbuilder = {path="./../rbuilder/crates/rbuilder"}
6463
rbuilder = { git = "https://github.com/flashbots/rbuilder.git", rev = "2266b217cbaf1a251514966e2cfafe01689a6537"}
64+
tokio-tungstenite = "0.26.2"
65+
exponential-backoff = "1.2.0"
6566

6667
[build-dependencies]
6768
built = { version = "0.7.1", features = ["git2", "chrono"] }

0 commit comments

Comments
 (0)