mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
Tweak multicast settings to prevent failures due to TX queue overflow.
This commit is contained in:
parent
26a0cbcd73
commit
44af828aa4
2 changed files with 3 additions and 4 deletions
|
@ -224,7 +224,7 @@
|
||||||
/**
|
/**
|
||||||
* How often Topology::clean() and Network::clean() and similar are called, in ms
|
* How often Topology::clean() and Network::clean() and similar are called, in ms
|
||||||
*/
|
*/
|
||||||
#define ZT_HOUSEKEEPING_PERIOD 60000
|
#define ZT_HOUSEKEEPING_PERIOD 30000
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delay between WHOIS retries in ms
|
* Delay between WHOIS retries in ms
|
||||||
|
|
|
@ -262,9 +262,8 @@ void Multicaster::send(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (gs.txQueue.size() >= ZT_TX_QUEUE_SIZE) {
|
while (gs.txQueue.size() >= ZT_TX_QUEUE_SIZE) {
|
||||||
RR->t->outgoingNetworkFrameDropped(tPtr,network,src,mg.mac(),etherType,0,len,"multicast TX queue is full");
|
gs.txQueue.pop_front();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const unsigned int gatherLimit = (limit - (unsigned int)gs.members.size()) + 1;
|
const unsigned int gatherLimit = (limit - (unsigned int)gs.members.size()) + 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue