-
Notifications
You must be signed in to change notification settings - Fork 703
use internal/timeout for config file timeouts #2721
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
Conversation
Changes all timeouts within the TimeoutConfig block in the config file to use internal/timeout.Setting, to be consistent with timeouts specified in HTTPProxy. Signed-off-by: Steve Kriss <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #2721 +/- ##
==========================================
+ Coverage 76.90% 77.00% +0.10%
==========================================
Files 72 72
Lines 5715 5697 -18
==========================================
- Hits 4395 4387 -8
+ Misses 1228 1223 -5
+ Partials 92 87 -5
|
| StreamIdleTimeout: ctx.StreamIdleTimeout, | ||
| MaxConnectionDuration: ctx.MaxConnectionDuration, | ||
| DrainTimeout: ctx.DrainTimeout, | ||
| ConnectionIdleTimeout: timeout.Parse(ctx.ConnectionIdleTimeout), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if someone passes an invalid config option, it's disabled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently yes, it would be disabled, which is consistent with how timeouts specified in HTTPProxy are treated today. But there's discussion in #2697 about bubbling these up as errors instead, which I think makes more sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic! 🎉
Changes all timeouts within the TimeoutConfig block in the config file to use internal/timeout.Setting, to be consistent with timeouts specified in HTTPProxy. Signed-off-by: Steve Kriss <[email protected]>
Changes all timeouts within the TimeoutConfig block in the config
file to use internal/timeout.Setting, to be consistent with timeouts
specified in HTTPProxy.
Signed-off-by: Steve Kriss [email protected]
updates #2697
Couple notes for reviewers:
RequestTimeoutconfig field; that's slated to move into TimeoutConfig per move serveContext.RequestTimeout into TimeoutConfig and drop old field #2690 and the new field will use this pattern.