Skip to content

Commit c5a14e7

Browse files
silence-codingsilence
authored andcommitted
fix(http1): fix http1_header_read_timeout to use same future (#2891)
Co-authored-by: silence <xxx@email.com> (cherry picked from commit 5fa113e)
1 parent b2052a4 commit c5a14e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/proto/h1/role.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ where
7979
if !*ctx.h1_header_read_timeout_running {
8080
if let Some(h1_header_read_timeout) = ctx.h1_header_read_timeout {
8181
let deadline = Instant::now() + h1_header_read_timeout;
82-
82+
*ctx.h1_header_read_timeout_running = true;
8383
match ctx.h1_header_read_timeout_fut {
8484
Some(h1_header_read_timeout_fut) => {
8585
debug!("resetting h1 header read timeout timer");

0 commit comments

Comments
 (0)