Use idleTimeout <https://grpc.github.io/grpc-java/javadoc/io/grpc/ManagedChannelBuilder.html#idleTimeout-long-java.util.concurrent.TimeUnit-> to not timeout an idle channel. The default is 30 minutes so are you sure that it is "forcibly disconnected after 30 seconds" ?
You can also look at keepAliveWithoutCalls <https://grpc.github.io/grpc-java/javadoc/io/grpc/ManagedChannelBuilder.html#keepAliveWithoutCalls-boolean-> or keepAliveTime <https://grpc.github.io/grpc-java/javadoc/io/grpc/ManagedChannelBuilder.html#keepAliveTime-long-java.util.concurrent.TimeUnit-> . On Thursday, March 16, 2023 at 1:46:26 PM UTC-7 kailas jadhav wrote: > Hello > > Hope you are doing well > > Need your support on below grpc connection issue > > I am able to actively make a connection from source to destination over > Port 7177, the problem is that connect appears to be forcibly disconnected > after 30 seconds > > Please could you suggest solution > > > > Kailas Jadhav > 9673032305 > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/0a9207d4-092e-4b8c-bdda-adc138177dabn%40googlegroups.com.