1
0
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:
niusmallnan 2019-08-12 16:13:01 +08:00
parent 7b5653473b
commit 2f988130e8

View File

@ -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()