5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-23 11:05:40 +00:00

re-enable a minimum queue size of ~1 big packet

This commit is contained in:
Arceliar 2020-05-17 08:49:40 -05:00
parent 0dcc555eab
commit 6e92af1cd2

View File

@ -310,7 +310,7 @@ func (p *peer) dropFromQueue(from phony.Actor, seq uint64) {
p.Act(from, func() {
switch {
case seq != p.seq:
//case p.queue.size < streamMsgSize:
case p.queue.size < streamMsgSize:
case p.queue.drop():
p.core.log.Debugln("DEBUG dropped:", p.port, p.queue.size)
p.intf.notifyQueued(p.seq)