mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 14:45:07 +03:00
more work-in-progress, debugging why things are dropping so often
This commit is contained in:
parent
b17a035a05
commit
62b9fab5f8
3 changed files with 15 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue