Merge pull request #1239 from lucas-clemente/h2quic-client-dont-log-normal-error

don't log the PeerGoingAway error in the h2quic client
This commit is contained in:
Marten Seemann
2018-03-12 21:01:39 +07:00
committed by GitHub

View File

@@ -108,7 +108,9 @@ func (c *client) handleHeaderStream() {
for err == nil {
err = c.readResponse(h2framer, decoder)
}
utils.Debugf("Error handling header stream: %s", err)
if quicErr, ok := err.(*qerr.QuicError); !ok || quicErr.ErrorCode != qerr.PeerGoingAway {
utils.Debugf("Error handling header stream: %s", err)
}
c.headerErr = qerr.Error(qerr.InvalidHeadersStreamData, err.Error())
// stop all running request
close(c.headerErrored)