mirror of
https://github.com/rancher/os.git
synced 2025-08-09 18:48:05 +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 {
|
func AllDefaultGWOK(timeout int) error {
|
||||||
backoff := util.Backoff{
|
backoff := util.Backoff{
|
||||||
MaxMillis: timeout,
|
StartMillis: 100,
|
||||||
|
MaxIntervalMillis: 2000,
|
||||||
|
MaxMillis: timeout,
|
||||||
}
|
}
|
||||||
defer backoff.Close()
|
defer backoff.Close()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user