- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 60 for defaultOptions (3.86 sec)
-
pkg/keepalive/options_test.go
func TestAgeDefaultsToInfinite(t *testing.T) { ko := keepalive.DefaultOption() if ko.MaxServerConnectionAge != keepalive.Infinity { t.Errorf("%s maximum connection age %v", t.Name(), ko.MaxServerConnectionAge) } } // Confirm maximum connection age parameters can be set from the command line. func TestSetConnectionAgeCommandlineOptions(t *testing.T) { ko := keepalive.DefaultOption() cmd := &cobra.Command{} ko.AttachCobraFlags(cmd)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jun 29 15:00:10 UTC 2020 - 1.6K bytes - Viewed (0) -
pkg/backoff/exponential_test.go
"time" "istio.io/istio/pkg/test/util/assert" ) func TestBackOff(t *testing.T) { var ( testInitialInterval = 500 * time.Millisecond testMaxInterval = 5 * time.Second ) o := DefaultOption() o.InitialInterval = testInitialInterval o.MaxInterval = testMaxInterval exp := NewExponentialBackOff(o) exp.(ExponentialBackOff).exponentialBackOff.Multiplier = 2
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Sep 05 16:03:30 UTC 2022 - 2.6K bytes - Viewed (0) -
pkg/keepalive/options.go
func (o *Options) ConvertToClientOption() grpc.DialOption { return grpc.WithKeepaliveParams(keepalive.ClientParameters{ Time: o.Time, Timeout: o.Timeout, }) } // DefaultOption returns the default keepalive options. func DefaultOption() *Options { return &Options{ Time: grpcKeepaliveInterval, Timeout: grpcKeepaliveTimeout, MaxServerConnectionAge: Infinity,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 3.9K bytes - Viewed (0) -
platforms/core-runtime/daemon-services/src/main/java/org/gradle/api/internal/tasks/userinput/UserQuestions.java
* * @param question The text of the question. * @param defaultOption The option to present to the user as the default selection, and also the value to use when not connected to a console. * @return the answer or the default if not connected to a console. */ <T> T selectOption(String question, Collection<T> options, T defaultOption); /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 09 04:50:46 UTC 2024 - 3.9K bytes - Viewed (0) -
platforms/core-runtime/daemon-services/src/test/groovy/org/gradle/api/internal/tasks/userinput/NonInteractiveUserInputHandlerTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 09 04:50:46 UTC 2024 - 2.2K bytes - Viewed (0) -
pkg/istio-agent/tap_proxy.go
xdsProxy *XdsProxy } func NewTapGrpcHandler(xdsProxy *XdsProxy) (*grpc.Server, error) { proxy := &tapProxy{ xdsProxy: xdsProxy, } grpcs := grpc.NewServer(istiogrpc.ServerOptions(istiokeepalive.DefaultOption())...) discovery.RegisterAggregatedDiscoveryServiceServer(grpcs, proxy) reflection.Register(grpcs) return grpcs, nil } const ( TypeDebugPrefix = "istio.io/debug/" )
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 04 20:29:08 UTC 2024 - 1.9K bytes - Viewed (0) -
platforms/core-runtime/daemon-services/src/test/groovy/org/gradle/api/internal/tasks/userinput/DefaultUserInputHandlerTest.groovy
1 * outputEventBroadcaster.onOutput(_) >> { SelectOptionPromptEvent event -> assert event.question == "select option" assert event.options == ["11", "12", "13"] assert event.defaultOption == 1 } 1 * userInputReader.readInput() >> new UserInputReader.TextResponse("2") 1 * outputEventBroadcaster.onOutput(_ as UserInputResumeEvent) 0 * outputEventBroadcaster._
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 09 04:50:46 UTC 2024 - 14.9K bytes - Viewed (0) -
pkg/backoff/exponential.go
exponentialBackOff *backoff.ExponentialBackOff } // Default values for ExponentialBackOff. const ( defaultInitialInterval = 500 * time.Millisecond defaultMaxInterval = 60 * time.Second ) func DefaultOption() Option { return Option{ InitialInterval: defaultInitialInterval, MaxInterval: defaultMaxInterval, } } // NewExponentialBackOff creates an istio wrapped ExponentialBackOff.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 25 01:53:48 UTC 2023 - 3.1K bytes - Viewed (0) -
pilot/pkg/grpc/grpc.go
// ClientOptions returns consistent grpc dial options with custom dial options func ClientOptions(options *istiokeepalive.Options, tlsOpts *TLSOptions) ([]grpc.DialOption, error) { if options == nil { options = istiokeepalive.DefaultOption() } keepaliveOption := grpc.WithKeepaliveParams(keepalive.ClientParameters{ Time: options.Time, Timeout: options.Timeout, })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Feb 17 04:27:50 UTC 2024 - 4.2K bytes - Viewed (0) -
pkg/wasm/httpfetcher.go
func (f *HTTPFetcher) Fetch(ctx context.Context, url string, allowInsecure bool) ([]byte, error) { c := f.client if allowInsecure { c = f.insecureClient } attempts := 0 o := backoff.DefaultOption() o.InitialInterval = f.initialBackoff b := backoff.NewExponentialBackOff(o) var lastError error for attempts < f.requestMaxRetry { attempts++
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Nov 14 20:23:34 UTC 2022 - 5.5K bytes - Viewed (0)