diff --git a/src/index.ts b/src/index.ts index d50b08925..fa0bb6f9d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -417,8 +417,7 @@ class Spanner extends GrpcService { libVersion: require('../../package.json').version, scopes, // Add grpc keep alive setting - 'grpc.keepalive_time_ms': 30000, - 'grpc.keepalive_timeout_ms': 10000, + 'grpc.keepalive_time_ms': 120000, // Enable grpc-gcp support 'grpc.callInvocationTransformer': grpcGcp.gcpCallInvocationTransformer, 'grpc.channelFactoryOverride': grpcGcp.gcpChannelFactoryOverride, diff --git a/test/index.ts b/test/index.ts index 3d0772a3e..39f4dfdd2 100644 --- a/test/index.ts +++ b/test/index.ts @@ -228,8 +228,7 @@ describe('Spanner', () => { libVersion: require('../../package.json').version, scopes: [], grpc, - 'grpc.keepalive_time_ms': 30000, - 'grpc.keepalive_timeout_ms': 10000, + 'grpc.keepalive_time_ms': 120000, 'grpc.callInvocationTransformer': fakeGrpcGcp().gcpCallInvocationTransformer, 'grpc.channelFactoryOverride': fakeGrpcGcp().gcpChannelFactoryOverride,