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_);