From 2f988130e82e4ce5bb026efa049cfa67ec78dced Mon Sep 17 00:00:00 2001 From: niusmallnan Date: Mon, 12 Aug 2019 16:13:01 +0800 Subject: [PATCH] Retry max timeout with the 20s when waitting for default gateway before: 300000 Millisecond, 5m now: 20000 Millisecond, 20s --- pkg/util/network/route.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/util/network/route.go b/pkg/util/network/route.go index 83a56e84..7a4c1570 100644 --- a/pkg/util/network/route.go +++ b/pkg/util/network/route.go @@ -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()