We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff8e413 commit 6a9bc3bCopy full SHA for 6a9bc3b
examples/src/main/java/io/grpc/examples/keepalive/KeepAliveClient.java
@@ -78,7 +78,6 @@ public static void main(String[] args) throws Exception {
78
// frames.
79
// More details see: https://github.com/grpc/proposal/blob/master/A8-client-side-keepalive.md
80
ManagedChannel channel = Grpc.newChannelBuilder(target, InsecureChannelCredentials.create())
81
- .keepAliveTime(5, TimeUnit.MINUTES)
82
.keepAliveTime(10, TimeUnit.SECONDS) // Change to a larger value, e.g. 5min.
83
.keepAliveTimeout(1, TimeUnit.SECONDS) // Change to a larger value, e.g. 10s.
84
.keepAliveWithoutCalls(true)// You should normally avoid enabling this.
0 commit comments