diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 6 | ||||
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs | 6 | ||||
-rwxr-xr-x | OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | 1 |
3 files changed, 10 insertions, 3 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 2fb67e0..b7e9117 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -5429,7 +5429,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
5429 | buf.DataLength = lastpos; | 5429 | buf.DataLength = lastpos; |
5430 | // zero encode is not as spec | 5430 | // zero encode is not as spec |
5431 | m_udpServer.SendUDPPacket(m_udpClient, buf, ThrottleOutPacketType.Task, | 5431 | m_udpServer.SendUDPPacket(m_udpClient, buf, ThrottleOutPacketType.Task, |
5432 | delegate (OutgoingPacket oPacket) { ResendPrimUpdates(tau, oPacket); }, false, true); | 5432 | //delegate (OutgoingPacket oPacket) { ResendPrimUpdates(tau, oPacket); }, false, true); |
5433 | null, false, true); | ||
5433 | 5434 | ||
5434 | tau = new List<EntityUpdate>(30); | 5435 | tau = new List<EntityUpdate>(30); |
5435 | tau.Add(eu); | 5436 | tau.Add(eu); |
@@ -5444,7 +5445,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
5444 | buf.Data[17] = (byte)count; | 5445 | buf.Data[17] = (byte)count; |
5445 | buf.DataLength = pos; | 5446 | buf.DataLength = pos; |
5446 | m_udpServer.SendUDPPacket(m_udpClient, buf, ThrottleOutPacketType.Task, | 5447 | m_udpServer.SendUDPPacket(m_udpClient, buf, ThrottleOutPacketType.Task, |
5447 | delegate (OutgoingPacket oPacket) { ResendPrimUpdates(tau, oPacket); }, false, true); | 5448 | //delegate (OutgoingPacket oPacket) { ResendPrimUpdates(tau, oPacket); }, false, true); |
5449 | null, false, true); | ||
5448 | } | 5450 | } |
5449 | } | 5451 | } |
5450 | 5452 | ||
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs index 303f505..fc1e846 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs | |||
@@ -728,6 +728,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
728 | /// acknowledgement</param> | 728 | /// acknowledgement</param> |
729 | public void UpdateRoundTrip(float r) | 729 | public void UpdateRoundTrip(float r) |
730 | { | 730 | { |
731 | return; | ||
732 | /* | ||
731 | const float ALPHA = 0.125f; | 733 | const float ALPHA = 0.125f; |
732 | const float BETA = 0.25f; | 734 | const float BETA = 0.25f; |
733 | const float K = 4.0f; | 735 | const float K = 4.0f; |
@@ -755,6 +757,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
755 | //if (RTO != rto) | 757 | //if (RTO != rto) |
756 | // m_log.Debug("[LLUDPCLIENT]: Setting RTO to " + RTO + "ms from " + rto + "ms with an RTTVAR of " + | 758 | // m_log.Debug("[LLUDPCLIENT]: Setting RTO to " + RTO + "ms from " + rto + "ms with an RTTVAR of " + |
757 | //RTTVAR + " based on new RTT of " + r + "ms"); | 759 | //RTTVAR + " based on new RTT of " + r + "ms"); |
760 | */ | ||
758 | } | 761 | } |
759 | 762 | ||
760 | /// <summary> | 763 | /// <summary> |
@@ -763,13 +766,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
763 | /// </summary> | 766 | /// </summary> |
764 | public void BackoffRTO() | 767 | public void BackoffRTO() |
765 | { | 768 | { |
769 | return; | ||
766 | // Reset SRTT and RTTVAR, we assume they are bogus since things | 770 | // Reset SRTT and RTTVAR, we assume they are bogus since things |
767 | // didn't work out and we're backing off the timeout | 771 | // didn't work out and we're backing off the timeout |
772 | /* | ||
768 | SRTT = 0.0f; | 773 | SRTT = 0.0f; |
769 | RTTVAR = 0.0f; | 774 | RTTVAR = 0.0f; |
770 | 775 | ||
771 | // Double the retransmission timeout | 776 | // Double the retransmission timeout |
772 | RTO = Math.Min(RTO * 2, m_maxRTO); | 777 | RTO = Math.Min(RTO * 2, m_maxRTO); |
778 | */ | ||
773 | } | 779 | } |
774 | 780 | ||
775 | const double MIN_CALLBACK_MS = 20.0; | 781 | const double MIN_CALLBACK_MS = 20.0; |
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs index 3817830..285751d 100755 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | |||
@@ -1214,7 +1214,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
1214 | // Stats tracking | 1214 | // Stats tracking |
1215 | Interlocked.Increment(ref udpClient.PacketsSent); | 1215 | Interlocked.Increment(ref udpClient.PacketsSent); |
1216 | PacketsSentCount++; | 1216 | PacketsSentCount++; |
1217 | |||
1218 | SyncSend(buffer); | 1217 | SyncSend(buffer); |
1219 | 1218 | ||
1220 | // Keep track of when this packet was sent out (right now) | 1219 | // Keep track of when this packet was sent out (right now) |