Squelch "connection reset by peer" exceptions

0.9.1.0-post-fixes
Melanie 2018-09-12 13:13:11 +01:00
parent b033a2559e
commit 39e82cb043
1 changed files with 8 additions and 1 deletions

View File

@ -94,6 +94,13 @@ 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);
@ -141,4 +148,4 @@ namespace OpenSim.Framework.Servers.HttpServer
return (int)b2.contextHash;
}
}
}
}