Skip to content

Commit

Permalink
Add sanity check on connection tracker scan interval
Browse files Browse the repository at this point in the history
  • Loading branch information
plorenz committed Nov 1, 2024
1 parent 28825ad commit cbb851b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controller/model/identity_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,9 @@ func newConnectionTracker(env Env) *ConnectionTracker {
unknownTimeout: env.GetConfig().Edge.IdentityStatusConfig.UnknownTimeout,
closeNotify: env.GetCloseNotifyChannel(),
}
if result.scanInterval < 5*time.Second {
result.scanInterval = 5 * time.Second
}
go result.runScanLoop()
return result
}
Expand Down

0 comments on commit cbb851b

Please sign in to comment.