post-review commit.

This commit is contained in:
Mahak Mukhi 2017-03-22 15:24:17 -07:00
parent 50fcb6ab90
commit d9541d7591
2 changed files with 2 additions and 2 deletions

View File

@ -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. // Idleness duration is defined since the most recent time the number of outstanding RPCs became zero or the connection establishment.
MaxConnectionIdle time.Duration 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. // 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 MaxConnectionAge time.Duration
// MaxConnectinoAgeGrace is an additive period after MaxConnectionAge after which the connection will be forcibly closed. // MaxConnectinoAgeGrace is an additive period after MaxConnectionAge after which the connection will be forcibly closed.
MaxConnectionAgeGrace time.Duration MaxConnectionAgeGrace time.Duration

View File

@ -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) { func TestMaxConnectionAge(t *testing.T) {
serverConfig := &ServerConfig{ serverConfig := &ServerConfig{
KeepaliveParams: keepalive.ServerParameters{ KeepaliveParams: keepalive.ServerParameters{