We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2e4a919 + fb569ce commit 137032cCopy full SHA for 137032c
container/crio/client.go
@@ -17,6 +17,7 @@ package crio
17
import (
18
"context"
19
"encoding/json"
20
+ "flag"
21
"fmt"
22
"io/ioutil"
23
"net"
@@ -26,6 +27,8 @@ import (
26
27
"time"
28
)
29
30
+var crioClientTimeout = flag.Duration("crio_client_timeout", time.Duration(0), "CRI-O client timeout. Default is no timeout.")
31
+
32
const (
33
CrioSocket = "/var/run/crio/crio.sock"
34
maxUnixSocketPathSize = len(syscall.RawSockaddrUnix{}.Path)
@@ -89,6 +92,7 @@ func Client() (CrioClient, error) {
89
92
theClient = &crioClientImpl{
90
93
client: &http.Client{
91
94
Transport: tr,
95
+ Timeout: *crioClientTimeout,
96
},
97
}
98
})
0 commit comments