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

Co-authored-by: silence <xxx@email.com>
(cherry picked from commit 5fa113ebffafef9fb655bc67b5d4fc0f3245fda5)
This commit is contained in:
silence-coding
2022-06-14 04:44:28 +08:00
committed by Sean McArthur
parent 20fa5c9dbf
commit 7e36f1472c
+1 -1
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");