I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit e130f85a authored by zzz's avatar zzz
Browse files

Merge branch 'ssuackdelay' into 'master'

SSU: Reduce ack delay to minimize addition to measured RTT

See merge request i2p-hackers/i2p.i2p!57
parents 9385ce70 2a6dc586
No related branches found
No related tags found
No related merge requests found
......@@ -2297,7 +2297,7 @@ public class PeerState {
private class ACKTimer extends SimpleTimer2.TimedEvent {
public ACKTimer() {
super(_context.simpleTimer2());
long delta = Math.min(_rtt/2, ACK_FREQUENCY);
long delta = Math.max(10, Math.min(_rtt/6, ACK_FREQUENCY));
if (_log.shouldDebug())
_log.debug("Sending delayed ack in " + delta + ": " + PeerState.this);
schedule(delta);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment