File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -115,14 +115,16 @@ func connect(
115
115
}
116
116
117
117
dialOptions = append (dialOptions ,
118
- grpc .WithInsecure (), // Don't use TLS, it's usually local Unix domain socket in a container.
119
- grpc .WithBackoffMaxDelay (time .Second ), // Retry every second after failure.
120
- grpc .WithBlock (), // Block until connection succeeds.
118
+ grpc .WithInsecure (), // Don't use TLS, it's usually local Unix domain socket in a container.
119
+ grpc .WithBackoffMaxDelay (time .Second ), // Retry every second after failure.
120
+ grpc .WithBlock (), // Block until connection succeeds.
121
+ grpc .WithIdleTimeout (time .Duration (0 )), // Never close connection because of inactivity.
121
122
grpc .WithChainUnaryInterceptor (
122
123
LogGRPC , // Log all messages.
123
124
ExtendedCSIMetricsManager {metricsManager }.RecordMetricsClientInterceptor , // Record metrics for each gRPC call.
124
125
),
125
126
)
127
+
126
128
unixPrefix := "unix://"
127
129
if strings .HasPrefix (address , "/" ) {
128
130
// It looks like filesystem path.
You can’t perform that action at this time.
0 commit comments