Remove retransmit limit

This commit is contained in:
Nonoo 2020-10-29 17:05:55 +01:00
parent 1a30f43cb0
commit f2dc29b92c

View file

@ -3,7 +3,6 @@ package main
import (
"bytes"
"encoding/binary"
"math"
"sync"
"time"
)
@ -29,11 +28,6 @@ func (p *pkt0Type) sendSeqUnlock() {
}
func (p *pkt0Type) retransmitRange(s *streamCommon, start, end uint16) error {
if int(math.Abs(float64(start)-float64(end))) > len(p.txSeqBuf.entries) {
log.Debug(s.name+"/can't retransmit #", start, "-", end, " - range too big")
return nil
}
log.Debug(s.name+"got retransmit request for #", start, "-", end)
for {
netstat.reportRetransmit(1)