Skip to content

Commit

Permalink
fix: pass pool_timer to hyper_util to enable the idle cleanup task
Browse files Browse the repository at this point in the history
  • Loading branch information
RobMor committed Sep 26, 2024
1 parent d85f44b commit 272210a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/async_impl/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,10 @@ impl ClientBuilder {
}

#[cfg(not(target_arch = "wasm32"))]
builder.timer(hyper_util::rt::TokioTimer::new());
{
builder.timer(hyper_util::rt::TokioTimer::new());
builder.pool_timer(hyper_util::rt::TokioTimer::new());
}
builder.pool_idle_timeout(config.pool_idle_timeout);
builder.pool_max_idle_per_host(config.pool_max_idle_per_host);
connector.set_keepalive(config.tcp_keepalive);
Expand Down

0 comments on commit 272210a

Please sign in to comment.