Repository navigation
Conversation
4 tasks done
finnbear
force-pushed
the
idle_timeout2
branch
from
November 30, 2026 23:40
f31c228 to
6a5e96c
Compare
zhniu
reviewed
Dec 1, 2026
zhniu
left a comment
There was a problem hiding this comment.
Great, I think this PR can fixes my issue.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The motivation (which doesn't apply to my use case, but does implicate my earlier header read timeout PR) is to make hyper servers more friendly for clients that send requests with gaps in between (by supporting a long idle timeout), without exposing a server to DoS (by forcing a long header timeout). See #3828 (comment) for more.
Behavior
Changes in bold.
This is behavior is similar to Go's
net/http.The default idle timeout is set at 60s, next to a default of 30s for header read timeout.
Implications
Security
A user who lowered
header_read_timeoutto mitigate DoS must consider whetheridle_timeoutmust also be lowered to mitigate DoS.Performance
According to a benchmark in #4285, timer allocation re-use may double throughput when timers are used. I did not benchmark this PR separately.
Future work
hyper_utilneeds a setter foridle_timeout.Links
Idle timeout (commit 1)
This PR is a followup to #3828 (comment) and #3828 (comment)
Related #1628
Supersedes #2827
Fixes #2355 better
Simplification of #3743
Timer allocation reuse (commit 2)
Fixes #4280
Supersedes #4288
Supersedes #4285
Attestation