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 ce1cfbd commit 35f5489Copy full SHA for 35f5489
api/grpcserver.go
@@ -65,8 +65,9 @@ var (
65
PermitWithoutStream: true, // Allow pings even when there are no active streams
66
}
67
kasp = keepalive.ServerParameters{
68
- Time: 60 * time.Second, // Ping the client if it is idle for 60 seconds to ensure the connection is still active
69
- Timeout: 10 * time.Second, // Wait 10 seconds for the ping ack before assuming the connection is dead
+ Time: 60 * time.Second, // Ping the client if it is idle for 60 seconds to ensure the connection is still active
+ Timeout: 10 * time.Second, // Wait 10 seconds for the ping ack before assuming the connection is dead
70
+ MaxConnectionIdle: 5 * time.Minute, // If a client is idle for 5 minutes, send a GOAWAY
71
72
)
73
0 commit comments