Skip to content

Commit

Permalink
address comment from grpc#4311 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
apolcyn committed Apr 14, 2021
1 parent afed69f commit 9277ca5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/transport/http2_client.go
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

0 comments on commit 9277ca5

Please sign in to comment.