diff options
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs b/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs index 4ea7692..04eb8de 100644 --- a/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs +++ b/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs | |||
@@ -99,16 +99,16 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
99 | response.Send(); | 99 | response.Send(); |
100 | buffer = null; | 100 | buffer = null; |
101 | } | 101 | } |
102 | catch (System.Net.Sockets.SocketException ex) | ||
103 | { | ||
104 | // This is "connection reset by peer", meaning the | ||
105 | // requesting server has given up. They need to | ||
106 | // fix their timeouts. We don't want to spam the | ||
107 | // log with this. | ||
108 | } | ||
109 | catch (Exception ex) | 102 | catch (Exception ex) |
110 | { | 103 | { |
111 | m_log.Warn("[POLL SERVICE WORKER THREAD]: Error ", ex); | 104 | if(ex is System.Net.Sockets.SocketException) |
105 | { | ||
106 | // only mute connection reset by peer so we are not totally blind for now | ||
107 | if(((System.Net.Sockets.SocketException)ex).SocketErrorCode != System.Net.Sockets.SocketError.ConnectionReset) | ||
108 | m_log.Warn("[POLL SERVICE WORKER THREAD]: Error ", ex); | ||
109 | } | ||
110 | else | ||
111 | m_log.Warn("[POLL SERVICE WORKER THREAD]: Error ", ex); | ||
112 | } | 112 | } |
113 | 113 | ||
114 | PollServiceArgs.RequestsHandled++; | 114 | PollServiceArgs.RequestsHandled++; |