aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers
diff options
context:
space:
mode:
authorUbitUmarov2018-09-12 13:24:01 +0100
committerUbitUmarov2018-09-12 13:24:01 +0100
commitcd9327cd8b13f5ecdb2f138f0c24e69bf618b1ec (patch)
tree9ba7e04cf738c2ed86934a20bd1ea89e14dc7f38 /OpenSim/Framework/Servers
parentfix a error message (diff)
parentMerge branch 'master' of opensimulator.org:/var/git/opensim (diff)
downloadopensim-SC-cd9327cd8b13f5ecdb2f138f0c24e69bf618b1ec.zip
opensim-SC-cd9327cd8b13f5ecdb2f138f0c24e69bf618b1ec.tar.gz
opensim-SC-cd9327cd8b13f5ecdb2f138f0c24e69bf618b1ec.tar.bz2
opensim-SC-cd9327cd8b13f5ecdb2f138f0c24e69bf618b1ec.tar.xz
Merge branch 'master' of opensimulator.org:/var/git/opensim
Diffstat (limited to 'OpenSim/Framework/Servers')
-rw-r--r--OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs25
1 files changed, 24 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs b/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs
index 1e2e2e3..4fd69f3 100644
--- a/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs
+++ b/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs
@@ -100,6 +100,13 @@ namespace OpenSim.Framework.Servers.HttpServer
100 response.Send(); 100 response.Send();
101 buffer = null; 101 buffer = null;
102 } 102 }
103 catch (System.Net.Sockets.SocketException ex)
104 {
105 // This is "connection reset by peer", meaning the
106 // requesting server has given up. They need to
107 // fix their timeouts. We don't want to spam the
108 // log with this.
109 }
103 catch (Exception ex) 110 catch (Exception ex)
104 { 111 {
105 m_log.Warn("[POLL SERVICE WORKER THREAD]: Error ", ex); 112 m_log.Warn("[POLL SERVICE WORKER THREAD]: Error ", ex);
@@ -133,4 +140,20 @@ namespace OpenSim.Framework.Servers.HttpServer
133 } 140 }
134 } 141 }
135 } 142 }
136} \ No newline at end of file 143
144 class PollServiceHttpRequestComparer : IEqualityComparer<PollServiceHttpRequest>
145 {
146 public bool Equals(PollServiceHttpRequest b1, PollServiceHttpRequest b2)
147 {
148 if (b1.contextHash != b2.contextHash)
149 return false;
150 bool b = Object.ReferenceEquals(b1.HttpContext, b2.HttpContext);
151 return b;
152 }
153
154 public int GetHashCode(PollServiceHttpRequest b2)
155 {
156 return (int)b2.contextHash;
157 }
158 }
159}