forked from quic-go/quic-go
send a HeadersStreamDataDecompressFailure error when H2 frame parsing fails
fixes #479
This commit is contained in:
@@ -110,7 +110,7 @@ func (c *Client) handleHeaderStream() {
|
||||
for {
|
||||
frame, err := h2framer.ReadFrame()
|
||||
if err != nil {
|
||||
c.headerErr = qerr.Error(qerr.InvalidStreamData, "cannot read frame")
|
||||
c.headerErr = qerr.Error(qerr.HeadersStreamDataDecompressFailure, "cannot read frame")
|
||||
break
|
||||
}
|
||||
lastStream = protocol.StreamID(frame.Header().StreamID)
|
||||
|
||||
Reference in New Issue
Block a user