diff --git a/internal/transport/http2_client.go b/internal/transport/http2_client.go index 2d118542191..48c5e52edae 100644 --- a/internal/transport/http2_client.go +++ b/internal/transport/http2_client.go @@ -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