mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 06:35:07 +03:00
workarounds to dropping being too aggressive
This commit is contained in:
parent
b132560f65
commit
b17a035a05
2 changed files with 6 additions and 1 deletions
|
@ -289,7 +289,7 @@ func (p *peer) _sendPackets(packets [][]byte) {
|
|||
func (p *peer) _handleIdle() {
|
||||
var packets [][]byte
|
||||
var size uint64
|
||||
for size < 65535 {
|
||||
for size < streamMsgSize {
|
||||
if packet, success := p.queue.pop(); success {
|
||||
packets = append(packets, packet)
|
||||
size += uint64(len(packet))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue