Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
protocols: increase dial timeout
Browse files Browse the repository at this point in the history
Run containers that use vsock as communication channel inside VMs
(nested environments) randomly fails with following error:

```
Stderr: docker: Error response from daemon: OCI runtime create failed:
Failed to check if grpc server is working: context deadline exceeded: unknown.
```

Sometimes the connection with the container's vsock is slow because of
kata-runtime disables modern (don't rely on fast MMIO) on some devices
including vsocks. This issue can be fixed by increasing the dial timeout.

fixes #324

Signed-off-by: Julio Montes <[email protected]>
  • Loading branch information
Julio Montes committed Aug 16, 2018
1 parent 4c723f4 commit 93fe84e
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 @@ -28,7 +28,7 @@ const (
vsockSocketScheme = "vsock"
)

var defaultDialTimeout = 5 * time.Second
var defaultDialTimeout = 15 * time.Second

// AgentClient is an agent gRPC client connection wrapper for agentgrpc.AgentServiceClient
type AgentClient struct {
Expand Down

0 comments on commit 93fe84e

Please sign in to comment.