-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Client should update keepalive parameters upon receiving GoAway with … #1169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…EnhanceYourCalm and debug data of too_many_pings.
clientconn.go
Outdated
mu sync.RWMutex | ||
sc ServiceConfig | ||
conns map[Address]*addrConn | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the empty line here to indicate that mkp is protected by mu?
func (t *http2Client) GetGoAwayReason() GoAwayReason { | ||
t.mu.Lock() | ||
defer t.mu.Unlock() | ||
return t.goAwayReason |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this atomic read?
The lock is probably even not necessary...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Following offline discussion leaving as is.
clientconn_test.go
Outdated
} | ||
|
||
type testserver struct { | ||
tr transport.ServerTransport |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just start a gRPC server here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
grpc#1169) * Client should update keepalive parameters upon receiving GoAway with EnhanceYourCalm and debug data of too_many_pings.
…EnhanceYourCalm and debug data of too_many_pings.