diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs index 3bd1ef1..c0a4e56 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | |||
@@ -134,6 +134,19 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
134 | 134 | ||
135 | StatsManager.RegisterStat( | 135 | StatsManager.RegisterStat( |
136 | new Stat( | 136 | new Stat( |
137 | "IncomingPacketsResentCount", | ||
138 | "Number of inbound packets that clients indicate are resends.", | ||
139 | "", | ||
140 | "", | ||
141 | "clientstack", | ||
142 | scene.Name, | ||
143 | StatType.Pull, | ||
144 | MeasuresOfInterest.AverageChangeOverTime, | ||
145 | stat => stat.Value = m_udpServer.IncomingPacketsResentCount, | ||
146 | StatVerbosity.Debug)); | ||
147 | |||
148 | StatsManager.RegisterStat( | ||
149 | new Stat( | ||
137 | "OutgoingUDPSendsCount", | 150 | "OutgoingUDPSendsCount", |
138 | "Number of UDP sends performed", | 151 | "Number of UDP sends performed", |
139 | "", | 152 | "", |
@@ -318,6 +331,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
318 | internal int PacketsSentCount { get; set; } | 331 | internal int PacketsSentCount { get; set; } |
319 | 332 | ||
320 | /// <summary> | 333 | /// <summary> |
334 | /// Record how many incoming packets are indicated as resends by clients. | ||
335 | /// </summary> | ||
336 | internal int IncomingPacketsResentCount { get; set; } | ||
337 | |||
338 | /// <summary> | ||
321 | /// Record how many inbound packets could not be recognized as LLUDP packets. | 339 | /// Record how many inbound packets could not be recognized as LLUDP packets. |
322 | /// </summary> | 340 | /// </summary> |
323 | public int IncomingMalformedPacketCount { get; private set; } | 341 | public int IncomingMalformedPacketCount { get; private set; } |
@@ -1467,6 +1485,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
1467 | 1485 | ||
1468 | #region Incoming Packet Accounting | 1486 | #region Incoming Packet Accounting |
1469 | 1487 | ||
1488 | // We're not going to worry about interlock yet since its not currently critical that this total count | ||
1489 | // is 100% correct | ||
1490 | if (packet.Header.Resent) | ||
1491 | IncomingPacketsResentCount++; | ||
1492 | |||
1470 | // Check the archive of received reliable packet IDs to see whether we already received this packet | 1493 | // Check the archive of received reliable packet IDs to see whether we already received this packet |
1471 | if (packet.Header.Reliable && !udpClient.PacketArchive.TryEnqueue(packet.Header.Sequence)) | 1494 | if (packet.Header.Reliable && !udpClient.PacketArchive.TryEnqueue(packet.Header.Sequence)) |
1472 | { | 1495 | { |