You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: connection/connection.go
+25-11Lines changed: 25 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,23 @@
1
+
/*
2
+
Copyright 2019 The Kubernetes Authors.
3
+
4
+
Licensed under the Apache License, Version 2.0 (the "License");
5
+
you may not use this file except in compliance with the License.
6
+
You may obtain a copy of the License at
7
+
8
+
http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+
Unless required by applicable law or agreed to in writing, software
11
+
distributed under the License is distributed on an "AS IS" BASIS,
12
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+
See the License for the specific language governing permissions and
14
+
limitations under the License.
15
+
*/
16
+
1
17
package connection
2
18
3
19
import (
4
20
"context"
5
-
"net"
6
21
"strings"
7
22
"time"
8
23
@@ -16,22 +31,21 @@ const (
16
31
connectionLoggingInterval=10*time.Second
17
32
)
18
33
19
-
// Connect opens insecure gRPC connection to a CSI driver. Address must be either absolute path to a socket file
20
-
// or have format '<protocol>://', following gRPC name resolution mechanism at https://github.com/grpc/grpc/blob/master/doc/naming.md.
21
-
// The function tries to connect indefinitely every second until it connects. The function automatically adds
0 commit comments