diff --git a/pkg/ovs/ovsconfig/default.go b/pkg/ovs/ovsconfig/default.go index b2f25106b64..94a6a898fac 100644 --- a/pkg/ovs/ovsconfig/default.go +++ b/pkg/ovs/ovsconfig/default.go @@ -25,8 +25,8 @@ const ( DefaultOVSRunDir = "/var/run/openvswitch" defaultConnNetwork = "unix" - // Wait up to 1 second when get port. - defaultGetPortTimeout = 1 * time.Second + // Wait up to 5 seconds when getting port. + defaultGetPortTimeout = 5 * time.Second ) func GetConnAddress(ovsRunDir string) string { diff --git a/pkg/ovs/ovsconfig/default_windows.go b/pkg/ovs/ovsconfig/default_windows.go index 016582dded6..1ca441e8bdf 100644 --- a/pkg/ovs/ovsconfig/default_windows.go +++ b/pkg/ovs/ovsconfig/default_windows.go @@ -25,9 +25,8 @@ const ( defaultConnNetwork = "winpipe" namedPipePrefix = `\\.\pipe\` - // Wait up to 2 seconds when get port, the operation of port creation - // takes longer on Windows platform than on Linux. - defaultGetPortTimeout = 2 * time.Second + // Wait up to 5 seconds when getting port. + defaultGetPortTimeout = 5 * time.Second ) func GetConnAddress(ovsRunDir string) string {