pesty warning

0.9.1.0-post-fixes
UbitUmarov 2018-09-13 11:37:04 +01:00
parent ca404e5001
commit 4652f8b84f
1 changed files with 8 additions and 8 deletions

View File

@ -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++;