INNER CODE UNIT · Go

retryPeriod

backube/volsync · cmd/main.go:220

	retryPeriod := 26 * time.Second

	cfg := ctrl.GetConfigOrDie()
	setupClient, err := client.New(cfg, client.Options{Scheme: scheme})
	if err != nil {
		setupLog.Error(err, "error creating client")
		os.Exit(1)
	}

	// Create a context that can be cancelled when there is a need to shut down the manager	.
	ctx, cancel := context.WithCancel(ctrl.SetupSignalHandler())
	// Ensure the context is cancelled when the program exits.
	defer cancel()

	// if the enable-http2 flag is false (the default), http/2 should be disabled
	// due to its vulnerabilities. More specifically, disabling http/2 will
	// prevent from being vulnerable to the HTTP/2 Stream Cancellation and
	// Rapid Reset CVEs. For more information see:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…