Repository navigation
use --wait-timeout for max starting time - #290
Conversation
| func NewTunnelProxyMonitor(ctx context.Context, root *rootManager, ipMap *ipmap.IPMap) *tpMonitor { | ||
| dur, err := time.ParseDuration(root.ciConfig.ConnectTimeout) | ||
| if err != nil { | ||
| dur = 10 * time.Second |
There was a problem hiding this comment.
Why not keep it at 30s? IMO, that's a safer default
There was a problem hiding this comment.
The CLI defaults to 10 seconds and that error will never trigger anyway. I think folks are used to the CLI default and would hesitate to change it.
There was a problem hiding this comment.
What do you mean it defaults to 10s? Previously on line 21, we had:
// maxStartingTime needs to be large enough for worst case startup time
maxStartingTime = 30 * time.Second
)
Isn't this the same parameter? I see our default having changed from 30s -> 10s from reading that. Am I missing something?
There was a problem hiding this comment.
I added a comment trying to clarify.
Overall, before this change, it was an independent parameter set as a constant in this file to 30s. Following the request to make it configurable, I linked it in this PR to the value of --wait-timeout as passed to signadot local connect. That value defaults to 10s.
There was a problem hiding this comment.
Ah, got it. I see now that there was already a default value for that flag and it exists already. sgtm.
No description provided.