mirror of
https://github.com/rancher/os.git
synced 2025-08-10 19:12:30 +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,6 +83,8 @@ func checkAllDefaultGW() bool {
|
|||||||
|
|
||||||
func AllDefaultGWOK(timeout int) error {
|
func AllDefaultGWOK(timeout int) error {
|
||||||
backoff := util.Backoff{
|
backoff := util.Backoff{
|
||||||
|
StartMillis: 100,
|
||||||
|
MaxIntervalMillis: 2000,
|
||||||
MaxMillis: timeout,
|
MaxMillis: timeout,
|
||||||
}
|
}
|
||||||
defer backoff.Close()
|
defer backoff.Close()
|
||||||
|
Loading…
Reference in New Issue
Block a user