mirror of https://github.com/grpc/grpc-go.git
examples: correct typo in keepalive example (#2645)
This commit is contained in:
parent
b86a9dbd22
commit
ae7b4f21da
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue