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.
ECONNRESET
1 parent 39b876f commit 668fbeeCopy full SHA for 668fbee
src/connection/grpc.ts
@@ -120,6 +120,12 @@ export const grpcClient = (config: GrpcConnectionParams): GrpcClient => {
120
const channelOptions: ChannelOptions = {
121
'grpc.max_send_message_length': MAX_GRPC_MESSAGE_LENGTH,
122
'grpc.max_receive_message_length': MAX_GRPC_MESSAGE_LENGTH,
123
+ // Send keepalive pings every 10 seconds, default is 2 hours.
124
+ 'grpc.keepalive_time_ms': 10 * 1000,
125
+ // Keepalive ping timeout after 5 seconds, default is 20 seconds.
126
+ 'grpc.keepalive_timeout_ms': 5 * 1000,
127
+ // Allow keepalive pings when there are no gRPC calls.
128
+ 'grpc.keepalive_permit_without_calls': 1,
129
};
130
if (config.grpcProxyUrl) {
131
// grpc.http_proxy is not used by grpc.js under-the-hood
0 commit comments