aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs12
1 files changed, 8 insertions, 4 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs b/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs
index 512f60d..a919141 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs
@@ -111,6 +111,8 @@ namespace OpenMetaverse
111 111
112 if (!IsRunningInbound) 112 if (!IsRunningInbound)
113 { 113 {
114 m_log.DebugFormat("[UDPBASE]: Starting inbound UDP loop");
115
114 const int SIO_UDP_CONNRESET = -1744830452; 116 const int SIO_UDP_CONNRESET = -1744830452;
115 117
116 IPEndPoint ipep = new IPEndPoint(m_localBindAddress, m_udpPort); 118 IPEndPoint ipep = new IPEndPoint(m_localBindAddress, m_udpPort);
@@ -155,6 +157,8 @@ namespace OpenMetaverse
155 /// </summary> 157 /// </summary>
156 public void StartOutbound() 158 public void StartOutbound()
157 { 159 {
160 m_log.DebugFormat("[UDPBASE]: Starting outbound UDP loop");
161
158 IsRunningOutbound = true; 162 IsRunningOutbound = true;
159 } 163 }
160 164
@@ -162,10 +166,8 @@ namespace OpenMetaverse
162 { 166 {
163 if (IsRunningInbound) 167 if (IsRunningInbound)
164 { 168 {
165 // wait indefinitely for a writer lock. Once this is called, the .NET runtime 169 m_log.DebugFormat("[UDPBASE]: Stopping inbound UDP loop");
166 // will deny any more reader locks, in effect blocking all other send/receive 170
167 // threads. Once we have the lock, we set IsRunningInbound = false to inform the other
168 // threads that the socket is closed.
169 IsRunningInbound = false; 171 IsRunningInbound = false;
170 m_udpSocket.Close(); 172 m_udpSocket.Close();
171 } 173 }
@@ -173,6 +175,8 @@ namespace OpenMetaverse
173 175
174 public void StopOutbound() 176 public void StopOutbound()
175 { 177 {
178 m_log.DebugFormat("[UDPBASE]: Stopping outbound UDP loop");
179
176 IsRunningOutbound = false; 180 IsRunningOutbound = false;
177 } 181 }
178 182