RTT 还是没整明白

This commit is contained in:
impact-eintr
2022-12-21 17:46:16 +08:00
parent e69ed41455
commit 94e12c1f21
6 changed files with 30 additions and 14 deletions

View File

@@ -3,7 +3,6 @@ package tcp
import (
"container/heap"
"fmt"
"log"
"netstack/logger"
"netstack/tcpip/seqnum"
)
@@ -100,9 +99,9 @@ func (r *receiver) consumeSegment(s *segment, segSeq seqnum.Value, segLen seqnum
logger.GetInstance().Info(logger.TCP, func() {
})
if r.ep.id.LocalPort == 9999 {
log.Println(r)
}
//if r.ep.id.LocalPort == 9999 {
// log.Println(r)
//}
// 修剪SACK块以删除任何涵盖已消耗序列号的SACK信息。
TrimSACKBlockList(&r.ep.sack, r.rcvNxt)