diff --git a/stream.go b/stream.go index c3255a6..7813651 100644 --- a/stream.go +++ b/stream.go @@ -423,7 +423,7 @@ func (s *Stream) readData(hdr header, flags uint16, conn io.Reader) error { } // Decrement the receive window - s.recvWindow += ^uint32(length - 1) + s.recvWindow -= length s.recvLock.Unlock() // Unblock any readers