mirror of
https://github.com/impact-eintr/netstack.git
synced 2025-11-03 11:10:50 +08:00
RTT 还是没整明白
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user