mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2026-05-21 21:36:30 +03:00
more work-in-progress, debugging why things are dropping so often
This commit is contained in:
@@ -55,7 +55,7 @@ func (q *packetQueue) drop() bool {
|
||||
}
|
||||
// Drop the oldest packet from the worst stream
|
||||
packet := worstStream.infos[0].packet
|
||||
if q.size-uint64(len(packet)) < streamMsgSize {
|
||||
if false && q.size-uint64(len(packet)) < streamMsgSize {
|
||||
// TODO something better
|
||||
// We don't want to drop *all* packets, so lets save 1 batch worth...
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user