merge develop into master #21

Merged
JakeHillion merged 149 commits from develop into master 2021-05-12 00:22:59 +01:00
Showing only changes of commit 27f87c2645 - Show all commits

View File

@ -227,7 +227,7 @@ func (c *NewReno) receivedNack(nack uint32) {
for { for {
s := c.windowSize s := c.windowSize
if s > 1 && atomic.CompareAndSwapUint32(&c.windowSize, s, s/2) { if s == 1 || atomic.CompareAndSwapUint32(&c.windowSize, s, s/2) {
break break
} }
} }