diff options
author | UbitUmarov | 2018-09-13 11:37:04 +0100 |
---|---|---|
committer | UbitUmarov | 2018-09-13 11:38:28 +0100 |
commit | 4652f8b84fe2602086fb2ecf51089b128c255d8c (patch) | |
tree | e6af67813ce53bff29871b396d762d3325ebf0da /OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs | |
parent | some cleanup (diff) | |
download | opensim-SC-4652f8b84fe2602086fb2ecf51089b128c255d8c.zip opensim-SC-4652f8b84fe2602086fb2ecf51089b128c255d8c.tar.gz opensim-SC-4652f8b84fe2602086fb2ecf51089b128c255d8c.tar.bz2 opensim-SC-4652f8b84fe2602086fb2ecf51089b128c255d8c.tar.xz |
pesty warning
Diffstat (limited to 'OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs')
-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++; |