diff options
author | Teravus Ovares | 2008-01-21 03:13:44 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-01-21 03:13:44 +0000 |
commit | da99c2ab10399b66f1b616d11b617d1c1ded2a6f (patch) | |
tree | 715a60898dd46b30f27770074a19be6ed416f1e6 /OpenSim/Region/ClientStack/UDPServer.cs | |
parent | * Added hooks for logout to all IUserService and all that implement it. (diff) | |
download | opensim-SC-da99c2ab10399b66f1b616d11b617d1c1ded2a6f.zip opensim-SC-da99c2ab10399b66f1b616d11b617d1c1ded2a6f.tar.gz opensim-SC-da99c2ab10399b66f1b616d11b617d1c1ded2a6f.tar.bz2 opensim-SC-da99c2ab10399b66f1b616d11b617d1c1ded2a6f.tar.xz |
* Stopped Physical Object saving on SQLite got commented out in my last commit.. un commenting it out now.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ClientStack/UDPServer.cs | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/OpenSim/Region/ClientStack/UDPServer.cs b/OpenSim/Region/ClientStack/UDPServer.cs index 4e4a0aa..59eec0c 100644 --- a/OpenSim/Region/ClientStack/UDPServer.cs +++ b/OpenSim/Region/ClientStack/UDPServer.cs | |||
@@ -112,6 +112,7 @@ namespace OpenSim.Region.ClientStack | |||
112 | { | 112 | { |
113 | // TODO : Actually only handle those states that we have control over, re-throw everything else, | 113 | // TODO : Actually only handle those states that we have control over, re-throw everything else, |
114 | // TODO: implement cases as we encounter them. | 114 | // TODO: implement cases as we encounter them. |
115 | m_log.Error("UDPSERVER", "Connection Error! - " + e.ToString()); | ||
115 | switch (e.SocketErrorCode) | 116 | switch (e.SocketErrorCode) |
116 | { | 117 | { |
117 | case SocketError.AlreadyInProgress: | 118 | case SocketError.AlreadyInProgress: |
@@ -179,8 +180,9 @@ namespace OpenSim.Region.ClientStack | |||
179 | 180 | ||
180 | return; | 181 | return; |
181 | } | 182 | } |
182 | catch (ObjectDisposedException) | 183 | catch (ObjectDisposedException e) |
183 | { | 184 | { |
185 | m_log.Warn("UDPSERVER", "Connection Error! - " + e.ToString()); | ||
184 | //MainLog.Instance.Debug("UDPSERVER", e.ToString()); | 186 | //MainLog.Instance.Debug("UDPSERVER", e.ToString()); |
185 | return; | 187 | return; |
186 | } | 188 | } |
@@ -191,9 +193,18 @@ namespace OpenSim.Region.ClientStack | |||
191 | { | 193 | { |
192 | packet = PacketPool.Instance.GetPacket(RecvBuffer, ref packetEnd, ZeroBuffer); | 194 | packet = PacketPool.Instance.GetPacket(RecvBuffer, ref packetEnd, ZeroBuffer); |
193 | } | 195 | } |
194 | catch (Exception) | 196 | catch (Exception e) |
195 | { | 197 | { |
196 | //MainLog.Instance.Debug("UDPSERVER", e.ToString()); | 198 | MainLog.Instance.Warn("UDPSERVER","Packet Error! - " + e.ToString()); |
199 | try | ||
200 | { | ||
201 | packet = Packet.BuildPacket(RecvBuffer, ref packetEnd, ZeroBuffer); | ||
202 | MainLog.Instance.Warn("UDPSERVER", "Recovered from Packet Error - " + e.ToString()); | ||
203 | } | ||
204 | catch (Exception e2) | ||
205 | { | ||
206 | MainLog.Instance.Warn("UDPSERVER", "2nd Packet Error! - " + e.ToString()); | ||
207 | } | ||
197 | } | 208 | } |
198 | 209 | ||
199 | if (packet != null) | 210 | if (packet != null) |
@@ -216,7 +227,8 @@ namespace OpenSim.Region.ClientStack | |||
216 | { | 227 | { |
217 | // invalid client | 228 | // invalid client |
218 | //CFK: This message seems to have served its usefullness as of 12-15 so I am commenting it out for now | 229 | //CFK: This message seems to have served its usefullness as of 12-15 so I am commenting it out for now |
219 | //m_log.Warn("client", "Got a packet from an invalid client - " + epSender.ToString()); | 230 | m_log.Warn("UDPSERVER", "Got a packet from an invalid client - " + packet.ToString()); |
231 | |||
220 | } | 232 | } |
221 | } | 233 | } |
222 | 234 | ||