You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this case, what will happen is diff will be < 7, so diff / 8 will be 0. As a result, peer -> roundTripTime -= diff / 8; will never result in the SRTT decreasing.
The effect of this bug is that the SRTT is effectively latched at 8 ms if it has ever exceeded 8 ms, even if the actual RTT has dropped back below 8 ms.
The RTT variance is also affected by a similar bug when peer -> roundTripTimeVariance is < 4, because peer -> roundTripTimeVariance / 4 will be 0.
The text was updated successfully, but these errors were encountered:
The SRTT and RTT variance logic (shown below) does not properly handle the case where the
peer->roundTripTime >= 8
androundTripTime < 8
.enet/protocol.c
Lines 863 to 876 in cf735e6
In this case, what will happen is
diff
will be < 7, sodiff / 8
will be 0. As a result,peer -> roundTripTime -= diff / 8;
will never result in the SRTT decreasing.The effect of this bug is that the SRTT is effectively latched at 8 ms if it has ever exceeded 8 ms, even if the actual RTT has dropped back below 8 ms.
The RTT variance is also affected by a similar bug when
peer -> roundTripTimeVariance
is < 4, becausepeer -> roundTripTimeVariance / 4
will be 0.The text was updated successfully, but these errors were encountered: