mirror of https://github.com/grpc/grpc-go.git
post-review commit.
This commit is contained in:
parent
50fcb6ab90
commit
d9541d7591
|
@ -23,7 +23,7 @@ type ServerParameters struct {
|
|||
// Idleness duration is defined since the most recent time the number of outstanding RPCs became zero or the connection establishment.
|
||||
MaxConnectionIdle time.Duration
|
||||
// MaxConnectionAge is a duration for the maximum amount of time a connection may exist before it will be closed by sending a GoAway.
|
||||
// A random jitter of +/-10% will be added to MAX_CONNECTION_AGE to spread out connection storms.
|
||||
// A random jitter of +/-10% will be added to MaxConnectionAge to spread out connection storms.
|
||||
MaxConnectionAge time.Duration
|
||||
// MaxConnectinoAgeGrace is an additive period after MaxConnectionAge after which the connection will be forcibly closed.
|
||||
MaxConnectionAgeGrace time.Duration
|
||||
|
|
|
@ -350,7 +350,7 @@ func TestMaxConnectionIdleNegative(t *testing.T) {
|
|||
|
||||
}
|
||||
|
||||
// TestMaxConnectinoAge tests that a server will send GoAway after a duration of MaxConnectionAge.
|
||||
// TestMaxConnectionAge tests that a server will send GoAway after a duration of MaxConnectionAge.
|
||||
func TestMaxConnectionAge(t *testing.T) {
|
||||
serverConfig := &ServerConfig{
|
||||
KeepaliveParams: keepalive.ServerParameters{
|
||||
|
|
Loading…
Reference in New Issue