- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for maxConnAge (0.1 sec)
-
pilot/pkg/autoregistration/controller.go
func NewController(store model.ConfigStoreController, instanceID string, maxConnAge time.Duration) *Controller { if !features.WorkloadEntryAutoRegistration && !features.WorkloadEntryHealthChecks { return nil } if maxConnAge != math.MaxInt64 { maxConnAge += maxConnAge / 2 // if overflow, set it to max int64 if maxConnAge < 0 { maxConnAge = time.Duration(math.MaxInt64) } } c := &Controller{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 16 00:00:36 UTC 2024 - 26.4K bytes - Viewed (0) -
pilot/pkg/autoregistration/controller_test.go
if len(items) != 0 { t.Fatalf("expected 0 WorkloadEntry") } }) } } func TestAutoregistrationLifecycle(t *testing.T) { maxConnAge := time.Hour c1, c2, store := setup(t) c2.maxConnectionAge = maxConnAge stopped1 := false stop1, stop2 := make(chan struct{}), make(chan struct{}) defer func() { // stop1 should be killed early, as part of test if !stopped1 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 16 00:00:36 UTC 2024 - 31.4K bytes - Viewed (0)