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