diff options
author | Justin Clark-Casey (justincc) | 2013-07-18 22:54:10 +0100 |
---|---|---|
committer | Diva Canto | 2013-07-21 08:58:02 -0700 |
commit | 66048e1a7024f151739fdb0be2309787a76c8403 (patch) | |
tree | 9e6c1c4e76223818dea6092c750276d8e39ced33 /OpenSim | |
parent | Fix up a temporary debugging change from last commit which stopped "lludp sto... (diff) | |
download | opensim-SC-66048e1a7024f151739fdb0be2309787a76c8403.zip opensim-SC-66048e1a7024f151739fdb0be2309787a76c8403.tar.gz opensim-SC-66048e1a7024f151739fdb0be2309787a76c8403.tar.bz2 opensim-SC-66048e1a7024f151739fdb0be2309787a76c8403.tar.xz |
minor: provide user feedback in the log for now when udp in/out bound threads are started/stopped
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs | 12 |
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 | ||