mirror of
https://github.com/impact-eintr/netstack.git
synced 2025-10-07 05:40:52 +08:00
慢启动 倍速增长在哪里实现的?
This commit is contained in:
@@ -49,7 +49,7 @@ func (e *endpoint) WritePacket(r *stack.Route, hdr buffer.Prependable, payload b
|
||||
// TODO 这里整点活 在特定的情况下丢掉数据报 模拟网络阻塞
|
||||
|
||||
e.count++
|
||||
if e.count == 6 { // 丢掉客户端写入的第二个包
|
||||
if e.count == -1 { // 丢掉客户端写入的第二个包
|
||||
logger.NOTICE(fmt.Sprintf("统计 %d 丢掉这个报文", e.count))
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user