-
Notifications
You must be signed in to change notification settings - Fork 975
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panic on setting idle_connection_timeout()
of SwarmBuilder
with max value
#4555
Comments
This comment was marked as outdated.
This comment was marked as outdated.
Okay, just noticed on thing. For the fist one, initially got a panic error but the program terminated with the same error as second one. Stacktrace:
|
I've observed this same panic when using rust-libp2p/swarm/src/connection.rs Lines 381 to 384 in 38ea7ad
|
Ah good catch @dariusc93 ! We shouldn't use |
@pawanl1x I updated the PR description to only be about the 2nd issue as the first one is known and will be fixed in the next update from |
To add to what @dariusc93 pointed out, I have also observed a panic inside rust-libp2p/swarm/src/connection.rs Line 372 in 38ea7ad
|
I've opened a PR for this: #4559 |
Summary
Progam is panicking after setting the idle_connection_timeout(Duration::from_secs(u64::MAX)) in
SwarmBuilder
.Expected behaviour
Actual behaviour
thread 'async-std/runtime' panicked at 'overflow when adding duration to instant', library/std/src/time.rs:408:33
Possible Solution
Version
Would you like to work on fixing this bug?
Yes / No / Maybe.
The text was updated successfully, but these errors were encountered: