Skip to content

Commit

Permalink
fix(http1): fix http1_header_read_timeout to use same future (#2891)
Browse files Browse the repository at this point in the history
Co-authored-by: silence <[email protected]>
(cherry picked from commit 5fa113e)
  • Loading branch information
silence-coding authored and seanmonstar committed Jul 7, 2022
1 parent b2052a4 commit c5a14e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proto/h1/role.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit c5a14e7

Please sign in to comment.