From 0d23e496f71b4902b35471a19edf9df6d80488e9 Mon Sep 17 00:00:00 2001 From: fakeshadow <24548779@qq.com> Date: Thu, 4 Nov 2021 21:50:45 +0800 Subject: [PATCH] fix initial on_flight flag --- actix-http/src/h2/dispatcher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actix-http/src/h2/dispatcher.rs b/actix-http/src/h2/dispatcher.rs index ca9342bfe..7326dfff1 100644 --- a/actix-http/src/h2/dispatcher.rs +++ b/actix-http/src/h2/dispatcher.rs @@ -58,7 +58,7 @@ where ) -> Self { let ping_pong = config.keep_alive_timer().map(|timer| H2PingPong { timer: Box::pin(timer), - on_flight: true, + on_flight: false, ping_pong: connection.ping_pong().unwrap(), });