Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@skriss
Copy link
Member

@skriss skriss commented Jul 22, 2020

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:

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
Copy link

codecov bot commented Jul 22, 2020

Codecov Report

Merging #2721 into master will increase coverage by 0.10%.
The diff coverage is 84.61%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
cmd/contour/serve.go 0.00% <0.00%> (ø)
cmd/contour/servecontext.go 93.44% <100.00%> (-0.11%) ⬇️
internal/contour/listener.go 93.93% <100.00%> (+3.28%) ⬆️
internal/envoy/listener.go 97.73% <100.00%> (ø)
internal/dag/cache.go 99.04% <0.00%> (+0.95%) ⬆️

StreamIdleTimeout: ctx.StreamIdleTimeout,
MaxConnectionDuration: ctx.MaxConnectionDuration,
DrainTimeout: ctx.DrainTimeout,
ConnectionIdleTimeout: timeout.Parse(ctx.ConnectionIdleTimeout),
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic! 🎉

@skriss skriss merged commit 3d5f311 into projectcontour:master Jul 23, 2020
@skriss skriss deleted the upd-cfg-timeouts branch July 23, 2020 15:03
tthebst pushed a commit to tthebst/contour that referenced this pull request Aug 6, 2020
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants