diff --git a/keepalive/keepalive.go b/keepalive/keepalive.go index 738b316b7..f4c89a319 100644 --- a/keepalive/keepalive.go +++ b/keepalive/keepalive.go @@ -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 diff --git a/transport/transport_test.go b/transport/transport_test.go index 8e86075db..e72a6b87d 100644 --- a/transport/transport_test.go +++ b/transport/transport_test.go @@ -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{