examples: correct typo in keepalive example (#2645)

This commit is contained in:
Muhammad Falak R Wani 2019-02-22 02:39:24 +05:30 committed by Menghan Li
parent b86a9dbd22
commit ae7b4f21da
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ var kaep = keepalive.EnforcementPolicy{
}
var kasp = keepalive.ServerParameters{
MaxConnectionIdle: 15 * time.Second, // If a client is idle for 10 seconds, send a GOAWAY
MaxConnectionIdle: 15 * time.Second, // If a client is idle for 15 seconds, send a GOAWAY
MaxConnectionAge: 30 * time.Second, // If any connection is alive for more than 30 seconds, send a GOAWAY
MaxConnectionAgeGrace: 5 * time.Second, // Allow 5 seconds for pending RPCs to complete before forcibly closing connections
Time: 5 * time.Second, // Ping the client if it is idle for 5 seconds to ensure the connection is still active