-
Notifications
You must be signed in to change notification settings - Fork 5.3k
http: add request header timer #13341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
ba55e0a
256924b
97de0f2
a1e78ee
773ded2
f780c24
0735254
068dbde
bd8b3c8
06e150f
99ec46b
df9c705
7924ff3
9e65d85
a28a251
991e437
39dc1be
ccd2599
f478d1f
97e07fd
e1411ff
576f43b
b0d5025
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -314,6 +314,8 @@ class ConnectionManagerImpl : Logger::Loggable<Logger::Id::http>, | |
| void onIdleTimeout(); | ||
| // Per-stream request timeout callback. | ||
| void onRequestTimeout(); | ||
| // Per-stream request header timeout callback. | ||
| void onRequestHeaderTimeout(); | ||
| // Per-stream alive duration reached. | ||
| void onStreamMaxDurationReached(); | ||
| bool hasCachedRoute() { return cached_route_.has_value() && cached_route_.value(); } | ||
|
|
@@ -354,11 +356,18 @@ class ConnectionManagerImpl : Logger::Loggable<Logger::Id::http>, | |
| Tracing::SpanPtr active_span_; | ||
| ResponseEncoder* response_encoder_{}; | ||
| Stats::TimespanPtr request_response_timespan_; | ||
| // Per-stream idle timeout. | ||
| // Per-stream idle timeout. This timer gets reset whenever activity occurs on the stream, and, | ||
| // when triggered, will close the stream. | ||
| Event::TimerPtr stream_idle_timer_; | ||
| // Per-stream request timeout. | ||
| // Per-stream request timeout. This timer is enabled when the stream is created and disabled | ||
| // when the stream ends. If triggered, it will close the stream. | ||
| Event::TimerPtr request_timer_; | ||
| // Per-stream alive duration. | ||
| // Per-stream request header timeout. This timer is enabled when the stream is created and | ||
| // disabled when the downstream finishes sending headers. If triggered, it will close the | ||
| // stream. | ||
| Event::TimerPtr request_header_timer_; | ||
| // Per-stream alive duration. This timer is enabled once when the stream is created and, if | ||
| // triggered, will close the stream. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. optional, think it's worth mentioning which of these try to send a reply?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm going to punt on this since whether or not a reply is sent for some of these is dependent on a runtime override. |
||
| Event::TimerPtr max_stream_duration_timer_; | ||
| std::chrono::milliseconds idle_timeout_ms_{}; | ||
| State state_; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.