diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/dial.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/dial.go b/client/dial.go index e1a6fd12b..4fce2ac5b 100644 --- a/client/dial.go +++ b/client/dial.go @@ -74,6 +74,8 @@ func DialContext(ctx context.Context, rawAddress string, connOpts []grpc.DialOpt ) } + // grpc.KeepaliveParams must be specified at least as large as what is allowed by the + // server-side grpc.KeepaliveEnforcementPolicy connOpts = append(connOpts, grpc.WithKeepaliveParams(keepalive.ClientParameters{ Time: 20 * time.Second, PermitWithoutStream: true, |