mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 04:37:36 +03:00
only use duplicate stream data error internally in the streamFrameSorter
This commit is contained in:
parent
8dc4b2d564
commit
53d76b6664
3 changed files with 18 additions and 13 deletions
|
@ -209,7 +209,7 @@ func (s *receiveStream) handleStreamFrame(frame *wire.StreamFrame) error {
|
|||
|
||||
s.mutex.Lock()
|
||||
defer s.mutex.Unlock()
|
||||
if err := s.frameQueue.Push(frame.Data, frame.Offset, frame.FinBit); err != nil && err != errDuplicateStreamData {
|
||||
if err := s.frameQueue.Push(frame.Data, frame.Offset, frame.FinBit); err != nil {
|
||||
return err
|
||||
}
|
||||
s.signalRead()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue