-
Notifications
You must be signed in to change notification settings - Fork 36
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
Pass dial timeout as option #1599
Pass dial timeout as option #1599
Conversation
Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1599 +/- ##
=======================================
Coverage ? 67.24%
=======================================
Files ? 262
Lines ? 12443
Branches ? 0
=======================================
Hits ? 8367
Misses ? 3552
Partials ? 524 ☔ View full report in Codecov by Sentry. |
@@ -100,4 +110,5 @@ type clientOptions struct { | |||
nsAdditionalFunctionality []registry.NetworkServiceRegistryClient | |||
nseAdditionalFunctionality []registry.NetworkServiceEndpointRegistryClient | |||
dialOptions []grpc.DialOption | |||
dialTimeout time.Duration |
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.
Can we use a default value for the dialTimeout for the case when dialTimeout is not passed?
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.
We have default values in the chain element.
sdk/pkg/registry/common/dial/nse_client.go
Line 172 in f5e9a5c
dialTimeout: time.Millisecond * 300, |
Do you think that additional ones need to be defined?
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.
As I can see, if WithDialTimeout
is not passed to the chains/client then the dial timeout here would be zero:
sdk/pkg/registry/common/dial/nse_client.go
Line 172 in f5e9a5c
dialTimeout: time.Millisecond * 300, |
Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
…k@main PR link: networkservicemesh/sdk#1599 Commit: 368383f Author: Artem Glazychev Date: 2024-03-25 16:45:24 +0700 Message: - Pass dial timeout as option (#1599) * Pass dial timeout as option Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1599 Commit: 368383f Author: Artem Glazychev Date: 2024-03-25 16:45:24 +0700 Message: - Pass dial timeout as option (#1599) * Pass dial timeout as option Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1599 Commit: 368383f Author: Artem Glazychev Date: 2024-03-25 16:45:24 +0700 Message: - Pass dial timeout as option (#1599) * Pass dial timeout as option Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1599 Commit: 368383f Author: Artem Glazychev Date: 2024-03-25 16:45:24 +0700 Message: - Pass dial timeout as option (#1599) * Pass dial timeout as option Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1599 Commit: 368383f Author: Artem Glazychev Date: 2024-03-25 16:45:24 +0700 Message: - Pass dial timeout as option (#1599) * Pass dial timeout as option Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1599 Commit: 368383f Author: Artem Glazychev Date: 2024-03-25 16:45:24 +0700 Message: - Pass dial timeout as option (#1599) * Pass dial timeout as option Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1599 Commit: 368383f Author: Artem Glazychev Date: 2024-03-25 16:45:24 +0700 Message: - Pass dial timeout as option (#1599) * Pass dial timeout as option Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1599 Commit: 368383f Author: Artem Glazychev Date: 2024-03-25 16:45:24 +0700 Message: - Pass dial timeout as option (#1599) * Pass dial timeout as option Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1599 Commit: 368383f Author: Artem Glazychev Date: 2024-03-25 16:45:24 +0700 Message: - Pass dial timeout as option (#1599) * Pass dial timeout as option Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1599 Commit: 368383f Author: Artem Glazychev Date: 2024-03-25 16:45:24 +0700 Message: - Pass dial timeout as option (#1599) * Pass dial timeout as option Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1599 Commit: 368383f Author: Artem Glazychev Date: 2024-03-25 16:45:24 +0700 Message: - Pass dial timeout as option (#1599) * Pass dial timeout as option Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1599 Commit: 368383f Author: Artem Glazychev Date: 2024-03-25 16:45:24 +0700 Message: - Pass dial timeout as option (#1599) * Pass dial timeout as option Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1599 Commit: 368383f Author: Artem Glazychev Date: 2024-03-25 16:45:24 +0700 Message: - Pass dial timeout as option (#1599) * Pass dial timeout as option Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1599 Commit: 368383f Author: Artem Glazychev Date: 2024-03-25 16:45:24 +0700 Message: - Pass dial timeout as option (#1599) * Pass dial timeout as option Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1599 Commit: 368383f Author: Artem Glazychev Date: 2024-03-25 16:45:24 +0700 Message: - Pass dial timeout as option (#1599) * Pass dial timeout as option Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> * Fix review comments Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
Description
Several options were missed
Issue link
networkservicemesh/deployments-k8s#11372
How Has This Been Tested?
Types of changes