From 5fa113ebffafef9fb655bc67b5d4fc0f3245fda5 Mon Sep 17 00:00:00 2001 From: silence-coding <32766901+silence-coding@users.noreply.github.com> Date: Tue, 14 Jun 2022 04:44:28 +0800 Subject: [PATCH] fix(http1): fix `http1_header_read_timeout` to use same future (#2891) Co-authored-by: silence --- src/proto/h1/role.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proto/h1/role.rs b/src/proto/h1/role.rs index d6272eea..6252207b 100644 --- a/src/proto/h1/role.rs +++ b/src/proto/h1/role.rs @@ -79,7 +79,7 @@ where if !*ctx.h1_header_read_timeout_running { if let Some(h1_header_read_timeout) = ctx.h1_header_read_timeout { let deadline = Instant::now() + h1_header_read_timeout; - + *ctx.h1_header_read_timeout_running = true; match ctx.h1_header_read_timeout_fut { Some(h1_header_read_timeout_fut) => { debug!("resetting h1 header read timeout timer");