Skip to content

Commit 45bbfb2

Browse files
committed
Removed keepAliveWithoutCalls
1 parent 2ede146 commit 45bbfb2

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

core/src/main/java/tech/ydb/core/impl/pool/NettyChannelFactory.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ public ManagedChannel newManagedChannel(String host, int port, String sslHostOve
8787
}
8888

8989
if (grpcKeepAliveTimeMillis != null) {
90-
channelBuilder.keepAliveTime(grpcKeepAliveTimeMillis, TimeUnit.MILLISECONDS)
91-
.keepAliveWithoutCalls(true);
90+
channelBuilder
91+
.keepAliveTime(grpcKeepAliveTimeMillis, TimeUnit.MILLISECONDS)
92+
.idleTimeout(5, TimeUnit.MINUTES);
9293
}
9394

9495
if (retryEnabled) {

core/src/main/java/tech/ydb/core/impl/pool/ShadedNettyChannelFactory.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ public ManagedChannel newManagedChannel(String host, int port, String sslHostOve
8787
}
8888

8989
if (grpcKeepAliveTimeMillis != null) {
90-
channelBuilder.keepAliveTime(grpcKeepAliveTimeMillis, TimeUnit.MILLISECONDS)
91-
.keepAliveWithoutCalls(true);
90+
channelBuilder
91+
.keepAliveTime(grpcKeepAliveTimeMillis, TimeUnit.MILLISECONDS)
92+
.idleTimeout(5, TimeUnit.MINUTES);
9293
}
9394

9495
if (retryEnabled) {

0 commit comments

Comments
 (0)