Skip to content

Commit

Permalink
protocols: client: Increase connection retry timeout
Browse files Browse the repository at this point in the history
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 kata-containers#732

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
  • Loading branch information
Sebastien Boeuf committed Feb 4, 2020
1 parent 36b37f6 commit e255378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocols/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e255378

Please sign in to comment.