We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Version hyper v0.14.20, h2 v0.3.14, tokio v1.21.2
hyper v0.14.20
h2 v0.3.14
tokio v1.21.2
Platform Linux seekr-xps15-zorin 5.13.0-35-generic #40~20.04.1-Ubuntu SMP Mon Mar 7 09:18:32 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Linux seekr-xps15-zorin 5.13.0-35-generic #40~20.04.1-Ubuntu SMP Mon Mar 7 09:18:32 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Description Passing in Some(Duration::ZERO) to hyper::client::Builder::pool_idle_timeout() can lead to a panic. The panic happens in the tokio::time::interval() function, which disallows specifying a zero duration.
Some(Duration::ZERO)
hyper::client::Builder::pool_idle_timeout()
tokio::time::interval()
I have switched my code to use builder.pool_max_idle_per_host(0) instead, which works properly.
builder.pool_max_idle_per_host(0)
The text was updated successfully, but these errors were encountered:
fix(client): panic when pool idle timeout set to zero
cc3f251
From issue: hyperium/hyper#2997
fix(client): panic when pool idle timeout set to zero (#3365)
34d3800
From issue: #2997
No branches or pull requests
Version
hyper v0.14.20
,h2 v0.3.14
,tokio v1.21.2
Platform
Linux seekr-xps15-zorin 5.13.0-35-generic #40~20.04.1-Ubuntu SMP Mon Mar 7 09:18:32 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Description
Passing in
Some(Duration::ZERO)
tohyper::client::Builder::pool_idle_timeout()
can lead to a panic. The panic happens in thetokio::time::interval()
function, which disallows specifying a zero duration.I have switched my code to use
builder.pool_max_idle_per_host(0)
instead, which works properly.The text was updated successfully, but these errors were encountered: