From e255378b0211ef6808dd45d03e81c674bdcc36e1 Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Tue, 4 Feb 2020 17:39:15 +0100 Subject: [PATCH] protocols: client: Increase connection retry timeout The client needs more than 15s to retry connecting to the agent since we know the agent might take some time to be ready and listen onto vsock. Indeed, in the context of the CI running nested virtualization, the VM might take some time to be spawned and it might boot a bit slower than expected, which means we need to let more time to the agent to listen on the AF_VSOCK socket. Bumping to 60s is acceptable since it will still make the container fails fairly quickly if things are really broken for some other reasons. Fixes #732 Signed-off-by: Sebastien Boeuf --- protocols/client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/client/client.go b/protocols/client/client.go index fb04cbab2b..1125edc607 100644 --- a/protocols/client/client.go +++ b/protocols/client/client.go @@ -35,7 +35,7 @@ const ( HybridVSockScheme = "hvsock" ) -var defaultDialTimeout = 15 * time.Second +var defaultDialTimeout = 60 * time.Second var defaultCloseTimeout = 5 * time.Second var hybridVSockPort uint32