Merge pull request #2952 from lucas-clemente/reset-h3-uni-stream-when-type-unknown

cancel reading on unidirectional streams when the stream type is unknown
This commit is contained in:
Marten Seemann
2020-12-29 07:42:24 +07:00
committed by GitHub
4 changed files with 22 additions and 30 deletions

View File

@@ -294,6 +294,7 @@ func (s *Server) handleUnidirectionalStreams(sess quic.EarlySession) {
sess.CloseWithError(quic.ErrorCode(errorStreamCreationError), "")
return
default:
str.CancelRead(quic.ErrorCode(errorStreamCreationError))
return
}
f, err := parseNextFrame(str)