fix(http1): fix http1_header_read_timeout to use same future (#2891)

Co-authored-by: silence <xxx@email.com>
This commit is contained in:
silence-coding
2022-06-14 04:44:28 +08:00
committed by GitHub
parent e9cab49e6e
commit 5fa113ebff

View File

@@ -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");