-
Notifications
You must be signed in to change notification settings - Fork 175
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
Reduce WAN check timeout #6290
Reduce WAN check timeout #6290
Conversation
@@ -186,7 +187,7 @@ func NewValidator(ctx context.Context, vch *config.VirtualContainerHostConfigSpe | |||
nwErrors := []error{} | |||
|
|||
// create a http client with a custom transport using the proxy from env vars | |||
client := &http.Client{Timeout: 30 * time.Second} | |||
client := &http.Client{Timeout: 10 * time.Second} |
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.
So 10 sec
or 5 sec
? I thought you wanted to reduce the timeout to 5 sec
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.
Talked with @hmahmood and settled on 10, @chengwang86
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.
Sorry, didn't update the original description after the first commit ;P
Reduce the WAN check in vicadmin timeout to 5 seconds so that the page will load quickly regardless of whether or not the VCH has extranet access.