mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-07-25 21:44:16 +00:00
have the peer delay setting a max buffer size, in case things have unblocked in the mean time
This commit is contained in:
@@ -303,11 +303,13 @@ func (p *peer) _handleIdle() {
|
||||
|
||||
func (p *peer) dropFromQueue(from phony.Actor, seq uint64) {
|
||||
p.Act(from, func() {
|
||||
p.Act(nil, func() {
|
||||
if seq == p.seq {
|
||||
p.drop = true
|
||||
p.max = p.queue.size + streamMsgSize
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
// This wraps the packet in the inner (ephemeral) and outer (permanent) crypto layers.
|
||||
|
Reference in New Issue
Block a user