forked from I2P_Developers/i2p.i2p
reduce the delay in ACKs to the minimum of rtt/2 and the constant
This commit is contained in:
@@ -78,7 +78,7 @@ class ACKSender implements Runnable {
|
|||||||
// the unsentACKThreshold to figure out when to send an ACK instead of
|
// the unsentACKThreshold to figure out when to send an ACK instead of
|
||||||
// using the timer, so we can set the timeout/frequency higher
|
// using the timer, so we can set the timeout/frequency higher
|
||||||
if (timeSinceACK < 2*1000)
|
if (timeSinceACK < 2*1000)
|
||||||
return Math.max(rtt/2, ACK_FREQUENCY);
|
return Math.min(rtt/2, ACK_FREQUENCY);
|
||||||
else
|
else
|
||||||
return ACK_FREQUENCY;
|
return ACK_FREQUENCY;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user