Skip to content
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

client: include details about GOAWAYs in status messages #4316

Merged
merged 11 commits into from
Apr 24, 2021
Prev Previous commit
Next Next commit
address comment from #4311 (comment)
  • Loading branch information
apolcyn committed Apr 14, 2021
commit 9277ca559d0e89475d8d0faf5b9ad7d265d8e943
3 changes: 1 addition & 2 deletions internal/transport/http2_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1155,8 +1155,7 @@ func (t *http2Client) handleGoAway(f *http2.GoAwayFrame) {
}
}
id := f.LastStreamID
// TODO(apolcyn): address this review comment
if id > 0 && id%2 != 1 {
if id > 0 && id%2 == 0 {
t.mu.Unlock()
t.Close(connectionErrorf(true, nil, "received goaway with non-zero even-numbered numbered stream id: %v", id))
return
Expand Down