Skip to content

Commit

Permalink
Make receive window update logic a bit cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
Preetha Appan committed Mar 14, 2018
1 parent 41ae2d8 commit 5ddd520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ddd520

Please sign in to comment.