-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
C-bugCategory: bug. Something is wrong. This is bad!Category: bug. Something is wrong. This is bad!
Description
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)
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.
I have switched my code to use builder.pool_max_idle_per_host(0)
instead, which works properly.
Metadata
Metadata
Assignees
Labels
C-bugCategory: bug. Something is wrong. This is bad!Category: bug. Something is wrong. This is bad!