From 72702a042e0c7e1f5efd942a667b80d25c2fd04a Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 5 Sep 2021 17:47:50 +0900 Subject: [PATCH] Cleanup --- src/shrpx_http3_upstream.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shrpx_http3_upstream.cc b/src/shrpx_http3_upstream.cc index cd3c4513..81f48a34 100644 --- a/src/shrpx_http3_upstream.cc +++ b/src/shrpx_http3_upstream.cc @@ -2478,7 +2478,7 @@ int Http3Upstream::start_graceful_shutdown() { auto t = ngtcp2_conn_get_pto(conn_); - ev_timer_set(&shutdown_timer_, static_cast(t) * 3 / NGTCP2_SECONDS, + ev_timer_set(&shutdown_timer_, static_cast(t * 3) / NGTCP2_SECONDS, 0.); ev_timer_start(handler_->get_loop(), &shutdown_timer_);