mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-06-21 00:25:06 +03:00
use a stupidly large FIFO
This commit is contained in:
parent
5261bac1d8
commit
432b2f7bdd
1 changed files with 1 additions and 1 deletions
|
@ -600,7 +600,7 @@ type switch_buffer struct {
|
|||
// Clean up old packets from buffers, to help keep latency within some reasonable bound
|
||||
func (t *switchTable) cleanBuffer(b *switch_buffer) {
|
||||
// TODO sane maximum buffer size, or else CoDel-like maximum time
|
||||
for len(b.packets) > 32 || (len(b.packets) > 0 && t.selfIsClosest(switch_getPacketCoords(b.packets[0].bytes))) {
|
||||
for len(b.packets) > 1024 || (len(b.packets) > 0 && t.selfIsClosest(switch_getPacketCoords(b.packets[0].bytes))) {
|
||||
util_putBytes(b.packets[0].bytes)
|
||||
b.packets = b.packets[1:]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue