Calculate round trip time as an exponentially weighted moving average, using a value of 0.2 for the weighting factor.
A weighting factor of 0.2 was chosen to put about 85% of the weight of the average RTT on the 9 most recent observations.

 JAVA-1567
Resetting the moving average only when the state goes back to Connecting.