From 4652f8b84fe2602086fb2ecf51089b128c255d8c Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 13 Sep 2018 11:37:04 +0100 Subject: [PATCH] pesty warning --- .../Servers/HttpServer/PollServiceHttpRequest.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs b/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs index 4ea7692e0c..04eb8de58a 100644 --- a/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs +++ b/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs @@ -99,16 +99,16 @@ namespace OpenSim.Framework.Servers.HttpServer response.Send(); buffer = null; } - catch (System.Net.Sockets.SocketException ex) - { - // This is "connection reset by peer", meaning the - // requesting server has given up. They need to - // fix their timeouts. We don't want to spam the - // log with this. - } catch (Exception ex) { - m_log.Warn("[POLL SERVICE WORKER THREAD]: Error ", ex); + if(ex is System.Net.Sockets.SocketException) + { + // only mute connection reset by peer so we are not totally blind for now + if(((System.Net.Sockets.SocketException)ex).SocketErrorCode != System.Net.Sockets.SocketError.ConnectionReset) + m_log.Warn("[POLL SERVICE WORKER THREAD]: Error ", ex); + } + else + m_log.Warn("[POLL SERVICE WORKER THREAD]: Error ", ex); } PollServiceArgs.RequestsHandled++;