forked from quic-go/quic-go
cancel reading on unidirectional streams when the stream type is unknown
Otherwise the stream would remain open indefinitely.
This commit is contained in:
@@ -280,6 +280,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)
|
||||
|
||||
Reference in New Issue
Block a user