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 5359488 + a81beea commit 39e6a03Copy full SHA for 39e6a03
cmd/main.go
@@ -68,7 +68,6 @@ func getCSIConnection() (connection.CSIConnection, error) {
68
}
69
70
func checkHealth(w http.ResponseWriter, req *http.Request) {
71
-
72
glog.Infof("Request: %s from: %s\n", req.URL.Path, req.RemoteAddr)
73
csiConn, err := getCSIConnection()
74
if err != nil {
@@ -77,6 +76,7 @@ func checkHealth(w http.ResponseWriter, req *http.Request) {
77
76
glog.Infof("Failed to get connection to CSI with error: %v.", err)
78
return
79
+ defer csiConn.Close()
80
ctx, cancel := context.WithTimeout(context.Background(), *connectionTimeout)
81
defer cancel()
82
if err := runProbe(ctx, csiConn); err != nil {
0 commit comments