mirror of
https://github.com/nonoo/kappanhang.git
synced 2026-01-05 08:19:58 +01:00
Remove retransmit limit
This commit is contained in:
parent
1a30f43cb0
commit
f2dc29b92c
6
pkt0.go
6
pkt0.go
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue