Am working on a project using GRPC which has a node js server and client is Android written in Kotlin. We are able to setup the connection and the server streaming works as expected.
The problem we are seeing is the server is pinging to client every 30 seconds for keepalive, even though we have kept the keep alive time as 5 minutes.
const options = { 'grpc.keepalive_permit_without_calls': false, "grpc.keepalive_time_ms": 300000 };
On client side
val builder = ManagedChannelBuilder.forAddress(ipaddress, portno)
.keepAliveTime(5, TimeUnit.MINUTES)
.keepAliveWithoutCalls(false)
.proxyDetector { null }
.usePlaintext()
channel = builder.build()
From wireshark logs I can see that the server is pinging the client every 30 seconds, is there any way to increase the time frame for pinging? If yes what is the maximum time frame we can keep and what are the code changes to be done ?