forked from quic-go/quic-go
don't send a STOP_SENDING if the stream was already reset by the peer
This commit is contained in:
@@ -190,10 +190,7 @@ func (s *receiveStream) CancelRead(errorCode protocol.ApplicationErrorCode) erro
|
||||
s.mutex.Lock()
|
||||
defer s.mutex.Unlock()
|
||||
|
||||
if s.finRead {
|
||||
return nil
|
||||
}
|
||||
if s.canceledRead {
|
||||
if s.finRead || s.canceledRead || s.resetRemotely {
|
||||
return nil
|
||||
}
|
||||
s.canceledRead = true
|
||||
|
||||
Reference in New Issue
Block a user