From 39e82cb04349174bfda91dc2952aabf690cfb87e Mon Sep 17 00:00:00 2001 From: Melanie Date: Wed, 12 Sep 2018 13:13:11 +0100 Subject: Squelch "connection reset by peer" exceptions --- OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs b/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs index 0e4a941..3eb330a 100644 --- a/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs +++ b/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs @@ -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; } } -} \ No newline at end of file +} -- cgit v1.1