aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-07-22 23:58:45 +0100
committerJustin Clark-Casey (justincc)2013-07-23 00:35:23 +0100
commit8396f1bd42cf42d412c09e769c491930aaa8bfea (patch)
tree22170f9de9d8b454e59a6826976df8e1d2ed4689 /OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs
parentAdd AverageUDPProcessTime stat to try and get a handle on how long we're taki... (diff)
downloadopensim-SC_OLD-8396f1bd42cf42d412c09e769c491930aaa8bfea.zip
opensim-SC_OLD-8396f1bd42cf42d412c09e769c491930aaa8bfea.tar.gz
opensim-SC_OLD-8396f1bd42cf42d412c09e769c491930aaa8bfea.tar.bz2
opensim-SC_OLD-8396f1bd42cf42d412c09e769c491930aaa8bfea.tar.xz
Record raw number of UDP receives as clientstack.IncomingUDPReceivesCount
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs b/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs
index 46a3261..b4044b5 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs
@@ -78,6 +78,11 @@ namespace OpenMetaverse
78 public bool IsRunningOutbound { get; private set; } 78 public bool IsRunningOutbound { get; private set; }
79 79
80 /// <summary> 80 /// <summary>
81 /// Number of UDP receives.
82 /// </summary>
83 public int UdpReceives { get; private set; }
84
85 /// <summary>
81 /// Number of receives over which to establish a receive time average. 86 /// Number of receives over which to establish a receive time average.
82 /// </summary> 87 /// </summary>
83 private readonly static int s_receiveTimeSamples = 500; 88 private readonly static int s_receiveTimeSamples = 500;
@@ -295,6 +300,8 @@ namespace OpenMetaverse
295 // to AsyncBeginReceive 300 // to AsyncBeginReceive
296 if (IsRunningInbound) 301 if (IsRunningInbound)
297 { 302 {
303 UdpReceives++;
304
298 // Asynchronous mode will start another receive before the 305 // Asynchronous mode will start another receive before the
299 // callback for this packet is even fired. Very parallel :-) 306 // callback for this packet is even fired. Very parallel :-)
300 if (m_asyncPacketHandling) 307 if (m_asyncPacketHandling)
@@ -345,7 +352,6 @@ namespace OpenMetaverse
345 if (!m_asyncPacketHandling) 352 if (!m_asyncPacketHandling)
346 AsyncBeginReceive(); 353 AsyncBeginReceive();
347 } 354 }
348
349 } 355 }
350 } 356 }
351 357