From aaafcdfa6ca1c043e7750c2d0f31cc239c9f9477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Wed, 31 Jul 2024 15:45:37 +0800 Subject: [PATCH] optimize: enlarge dup pkt gap time --- gold/link/send.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gold/link/send.go b/gold/link/send.go index c76fbc2..3b3030b 100644 --- a/gold/link/send.go +++ b/gold/link/send.go @@ -96,7 +96,7 @@ func (l *Link) write(p *head.Packet, teatype uint8, additional uint16, datasz ui } if l.doublepacket { cpp := p.Copy() - time.AfterFunc(time.Millisecond*(10+time.Duration(rand.Intn(10))), func() { + _ = time.AfterFunc(time.Millisecond*(100+time.Duration(rand.Intn(50))), func() { defer cpp.Put() _, _ = l.writeonce(cpp, teatype, additional, datasz, offset, istransfer, hasmore) })