diff options
author | John Hurliman | 2010-02-23 14:58:36 -0800 |
---|---|---|
committer | John Hurliman | 2010-02-23 14:58:36 -0800 |
commit | c6dd670d584a1e9334839422641eeca54dc7902f (patch) | |
tree | de7cdfd90cc5854b52daad8d602c1ffc5826ae87 /OpenSim | |
parent | * Removed the unused GridRegion.getInternalEndPointPort() (just use InternalE... (diff) | |
download | opensim-SC-c6dd670d584a1e9334839422641eeca54dc7902f.zip opensim-SC-c6dd670d584a1e9334839422641eeca54dc7902f.tar.gz opensim-SC-c6dd670d584a1e9334839422641eeca54dc7902f.tar.bz2 opensim-SC-c6dd670d584a1e9334839422641eeca54dc7902f.tar.xz |
Streamlined error logging for malformed packets and fixed a bug when printing the hex dump
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs index 2d956fa..36d24e8 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs | |||
@@ -596,15 +596,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
596 | } | 596 | } |
597 | catch (MalformedDataException) | 597 | catch (MalformedDataException) |
598 | { | 598 | { |
599 | m_log.ErrorFormat("[LLUDPSERVER]: Malformed data, cannot parse packet from {0}:\n{1}", | ||
600 | buffer.RemoteEndPoint, Utils.BytesToHexString(buffer.Data, buffer.DataLength, null)); | ||
601 | } | 599 | } |
602 | 600 | ||
603 | // Fail-safe check | 601 | // Fail-safe check |
604 | if (packet == null) | 602 | if (packet == null) |
605 | { | 603 | { |
606 | m_log.Warn("[LLUDPSERVER]: Couldn't build a message from incoming data " + buffer.DataLength + | 604 | m_log.ErrorFormat("[LLUDPSERVER]: Malformed data, cannot parse {0} byte packet from {1}:", |
607 | " bytes long from " + buffer.RemoteEndPoint); | 605 | buffer.DataLength, buffer.RemoteEndPoint); |
606 | m_log.Error(Utils.BytesToHexString(buffer.Data, buffer.DataLength, null)); | ||
608 | return; | 607 | return; |
609 | } | 608 | } |
610 | 609 | ||