mirror of
https://github.com/openharmony/third_party_rust_hyper.git
synced 2026-07-01 19:54:17 -04:00
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:
committed by
Sean McArthur
parent
20fa5c9dbf
commit
7e36f1472c
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user