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

Skip to content
Snippets Groups Projects
Commit 96de87fd authored by zab2's avatar zab2
Browse files

compute rttDev in updateRTT

parent 55d571ff
No related branches found
No related tags found
No related merge requests found
......@@ -582,7 +582,6 @@ class ConnectionOptions extends I2PSocketOptionsImpl {
case INIT :
throw new IllegalStateException();
case FIRST :
_rttDev = _rtt / 2;
_rto = _rtt + _rtt / 2;
break;
case STEADY :
......@@ -617,6 +616,7 @@ class ConnectionOptions extends I2PSocketOptionsImpl {
case INIT:
_initState = AckInit.FIRST;
setRTT(measuredValue); // no smoothing first sample
_rttDev = _rtt / 2;
break;
case FIRST:
_initState = AckInit.STEADY; // fall through
......
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