* BuildHandler: Increase threshold for dropping instead
of rejecting to 81% (was 75%)
This commit is contained in:
@ -579,9 +579,10 @@ class BuildHandler {
|
|||||||
// Connection congestion control:
|
// Connection congestion control:
|
||||||
// If we rejected the request, are near our conn limits, and aren't connected to the next hop,
|
// If we rejected the request, are near our conn limits, and aren't connected to the next hop,
|
||||||
// just drop it.
|
// just drop it.
|
||||||
|
// 81% = between 75% control measures in Transports and 87% rejection above
|
||||||
if (response != 0 &&
|
if (response != 0 &&
|
||||||
(! _context.routerHash().equals(nextPeer)) &&
|
(! _context.routerHash().equals(nextPeer)) &&
|
||||||
(! _context.commSystem().haveOutboundCapacity(75)) &&
|
(! _context.commSystem().haveOutboundCapacity(81)) &&
|
||||||
(! _context.commSystem().isEstablished(nextPeer))) {
|
(! _context.commSystem().isEstablished(nextPeer))) {
|
||||||
_context.statManager().addRateData("tunnel.dropConnLimits", 1, 0);
|
_context.statManager().addRateData("tunnel.dropConnLimits", 1, 0);
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user