mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-02-13 10:21:50 +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:
parent
28d6e3e605
commit
9574308545
1 changed files with 6 additions and 4 deletions
|
@ -303,10 +303,12 @@ func (p *peer) _handleIdle() {
|
|||
|
||||
func (p *peer) dropFromQueue(from phony.Actor, seq uint64) {
|
||||
p.Act(from, func() {
|
||||
if seq == p.seq {
|
||||
p.drop = true
|
||||
p.max = p.queue.size + streamMsgSize
|
||||
}
|
||||
p.Act(nil, func() {
|
||||
if seq == p.seq {
|
||||
p.drop = true
|
||||
p.max = p.queue.size + streamMsgSize
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue