Skip to content

Commit

Permalink
add grpc channel keepalive options
Browse files Browse the repository at this point in the history
  • Loading branch information
wphan committed Dec 5, 2024
1 parent 987eeeb commit 7e9702a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/publishers/dlobPublisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,11 @@ const main = async () => {
grpcConfigs: {
endpoint,
token,
channelOptions: {
'grpc.keepalive_time_ms': 10_000,
'grpc.keepalive_timeout_ms': 1_000,
'grpc.keepalive_permit_without_calls': 1,
},
},
};

Expand Down Expand Up @@ -437,6 +442,11 @@ const main = async () => {
endpoint: endpoint,
token: token,
commitmentLevel: stateCommitment,
channelOptions: {
'grpc.keepalive_time_ms': 10_000,
'grpc.keepalive_timeout_ms': 1_000,
'grpc.keepalive_permit_without_calls': 1,
},
},
commitment: stateCommitment,
};
Expand Down

0 comments on commit 7e9702a

Please sign in to comment.