mirror of
https://github.com/rancher/os.git
synced 2025-04-28 03:20:50 +00:00
Retry max timeout with the 20s when waitting for default gateway
before: 300000 Millisecond, 5m now: 20000 Millisecond, 20s
This commit is contained in:
parent
7b5653473b
commit
2f988130e8
@ -83,7 +83,9 @@ func checkAllDefaultGW() bool {
|
||||
|
||||
func AllDefaultGWOK(timeout int) error {
|
||||
backoff := util.Backoff{
|
||||
MaxMillis: timeout,
|
||||
StartMillis: 100,
|
||||
MaxIntervalMillis: 2000,
|
||||
MaxMillis: timeout,
|
||||
}
|
||||
defer backoff.Close()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user