diff options
author | John Hurliman | 2009-10-23 01:33:05 -0700 |
---|---|---|
committer | John Hurliman | 2009-10-23 01:33:05 -0700 |
commit | ac0acb02962c37f870dc38a356e1530803f699e8 (patch) | |
tree | e80b730d6f01a74d6844ca9f5f89ce40accae960 /OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs | |
parent | Commented out noisy debugging about resent packets (normal) and agents settin... (diff) | |
download | opensim-SC-ac0acb02962c37f870dc38a356e1530803f699e8.zip opensim-SC-ac0acb02962c37f870dc38a356e1530803f699e8.tar.gz opensim-SC-ac0acb02962c37f870dc38a356e1530803f699e8.tar.bz2 opensim-SC-ac0acb02962c37f870dc38a356e1530803f699e8.tar.xz |
* Changed the max RTO value to 60 seconds to comply with RFC 2988
* Implemented section 5.5, exponential backoff of the RTO after a resend
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs index 2973d4b..7e929e5 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs | |||
@@ -407,6 +407,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
407 | { | 407 | { |
408 | //m_log.Debug("[LLUDPSERVER]: Resending " + expiredPackets.Count + " packets to " + udpClient.AgentID + ", RTO=" + udpClient.RTO); | 408 | //m_log.Debug("[LLUDPSERVER]: Resending " + expiredPackets.Count + " packets to " + udpClient.AgentID + ", RTO=" + udpClient.RTO); |
409 | 409 | ||
410 | // Backoff the RTO | ||
411 | udpClient.RTO = Math.Min(udpClient.RTO * 2, 60000); | ||
412 | |||
410 | // Resend packets | 413 | // Resend packets |
411 | for (int i = 0; i < expiredPackets.Count; i++) | 414 | for (int i = 0; i < expiredPackets.Count; i++) |
412 | { | 415 | { |