grpc-ecosystem / grpc-spring

Spring Boot starter module for gRPC framework.
https://grpc-ecosystem.github.io/grpc-spring/
Apache License 2.0
3.46k stars 812 forks source link

Connection closed by server after 20s vs. keep-alive #996

Open tomas0svk opened 9 months ago

tomas0svk commented 9 months ago

The context

Hello. I am trying to equalize keep-alive settings between client and server to avoid unnecessary go-aways due to misbehaving clients

The question

I came across a strange behavior. If there is no interaction between client and server, 20s after last HTTP2/RST_STREAM, server sends HTTP2/GOAWAY which leads to closing of HTTP2 as well as TCP connection. This happens both

Is this expected behavior? Am I able to change the timeout? Or rather... Am I supposed to change this, or this is a sensible default? Thank you

Stacktraces and logs

image

The application's environment