Skip to content

Commit

Permalink
optimize: enlarge dup pkt gap time
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Jul 31, 2024
1 parent dd51f9f commit aaafcdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gold/link/send.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
Expand Down

0 comments on commit aaafcdf

Please sign in to comment.