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