File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
include/ydb-cpp-sdk/client/driver Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1- 9184024c04c9a6f9cc079ebaea346ac89bc37aac
1+ ca39c1dc5e3592adab111f61e4aaec2021bfa95b
Original file line number Diff line number Diff line change @@ -89,13 +89,12 @@ class TDriverConfig {
8989 // ! Params is a optionally field to set policy settings
9090 // ! default: EBalancingPolicy::UsePreferableLocation
9191 TDriverConfig& SetBalancingPolicy (EBalancingPolicy policy, const std::string& params = std::string());
92- // ! !!! EXPERIMENTAL !!!
9392 // ! Set grpc level keep alive. If keepalive ping was delayed more than given timeout
9493 // ! internal grpc routine fails request with TRANSIENT_FAILURE or TRANSPORT_UNAVAILABLE error
9594 // ! Note: this timeout should not be too small to prevent fail due to
9695 // ! network buffers delay. I.e. values less than 5 seconds may cause request failure
9796 // ! even with fast network
98- // ! default: disabled
97+ // ! default: enabled, 10 seconds
9998 TDriverConfig& SetGRpcKeepAliveTimeout (TDuration timeout);
10099 TDriverConfig& SetGRpcKeepAlivePermitWithoutCalls (bool permitWithoutCalls);
101100 // ! Set inactive socket timeout.
Original file line number Diff line number Diff line change @@ -70,8 +70,8 @@ class TDriverConfig::TImpl : public IConnectionsParams {
7070 };
7171 bool DrainOnDtors = true ;
7272 TBalancingSettings BalancingSettings = TBalancingSettings{EBalancingPolicy::UsePreferableLocation, std::string ()};
73- TDuration GRpcKeepAliveTimeout;
74- bool GRpcKeepAlivePermitWithoutCalls = false ;
73+ TDuration GRpcKeepAliveTimeout = TDuration::Seconds( 10 ) ;
74+ bool GRpcKeepAlivePermitWithoutCalls = true ;
7575 TDuration SocketIdleTimeout = TDuration::Minutes(6 );
7676 uint64_t MemoryQuota = 0 ;
7777 uint64_t MaxInboundMessageSize = 0 ;
You can’t perform that action at this time.
0 commit comments