Skip to content

Commit

Permalink
Merge 21ebd5a into 7d2c257
Browse files Browse the repository at this point in the history
  • Loading branch information
uzhastik authored Oct 22, 2024
2 parents 7d2c257 + 21ebd5a commit 4e23ef1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ydb/library/grpc/actor_client/grpc_service_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ class TGrpcServiceClient {
}

static NYdbGrpc::TGRpcClientConfig InitGrpcConfig(const NGrpcActorClient::TGrpcClientSettings& settings) {
NYdbGrpc::TGRpcClientConfig config(settings.Endpoint, DEFAULT_TIMEOUT, NYdbGrpc::DEFAULT_GRPC_MESSAGE_SIZE_LIMIT, 0, settings.CertificateRootCA);
const TDuration effectiveTimeout = settings.RequestTimeoutMs ? TDuration::Milliseconds(settings.RequestTimeoutMs) : DEFAULT_TIMEOUT;
NYdbGrpc::TGRpcClientConfig config(settings.Endpoint, effectiveTimeout, NYdbGrpc::DEFAULT_GRPC_MESSAGE_SIZE_LIMIT, 0, settings.CertificateRootCA);
config.EnableSsl = settings.EnableSsl;
config.IntChannelParams[GRPC_ARG_KEEPALIVE_TIME_MS] = settings.GrpcKeepAliveTimeMs;
config.IntChannelParams[GRPC_ARG_KEEPALIVE_TIMEOUT_MS] = settings.GrpcKeepAliveTimeoutMs;
Expand Down

0 comments on commit 4e23ef1

Please sign in to comment.