Make sure you include information that can help us understand your question. -->
By default, the GRPC_ARG_KEEPALIVE_TIME_MS parameter is set to 2h on the server. How can I change this?
I use this:
// implementation of the service:
MyService boxService = new MyService();
NettyServerBuilder nettyBuilder = NettyServerBuilder.forPort(ssl_port)
.permitKeepAliveWithoutCalls(true)
.permitKeepAliveTime(5, TimeUnit.SECONDS);
nettyBuilder.addService(boxService);
Service server = nettyBuilder
.build();
KeepAlive is a client decision. This allows the client so send keep-alives every 5 seconds, even if no calls are active. Helpful for streaming calls, where you can't use deadlines really.
Most helpful comment
I use this:
KeepAlive is a client decision. This allows the client so send keep-alives every 5 seconds, even if no calls are active. Helpful for streaming calls, where you can't use deadlines really.