aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs
diff options
context:
space:
mode:
authorUbitUmarov2015-08-18 23:59:55 +0100
committerUbitUmarov2015-08-18 23:59:55 +0100
commit48ef22f62e07c0b9e6d23ee758a4800d05cfb231 (patch)
treed4f2b9d4b38b3e80ff459676c7a88bcf721ccfac /OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs
parentdo keepalive on mesh and texture GET. Dont use reusecontext any where. (diff)
downloadopensim-SC_OLD-48ef22f62e07c0b9e6d23ee758a4800d05cfb231.zip
opensim-SC_OLD-48ef22f62e07c0b9e6d23ee758a4800d05cfb231.tar.gz
opensim-SC_OLD-48ef22f62e07c0b9e6d23ee758a4800d05cfb231.tar.bz2
opensim-SC_OLD-48ef22f62e07c0b9e6d23ee758a4800d05cfb231.tar.xz
change pollService stop() to send 503 error and no keepalive. ( untested )
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs24
1 files changed, 23 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs b/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs
index e636c38..5bd63a6 100644
--- a/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs
+++ b/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs
@@ -114,7 +114,29 @@ namespace OpenSim.Framework.Servers.HttpServer
114 PollServiceArgs.RequestsHandled++; 114 PollServiceArgs.RequestsHandled++;
115 } 115 }
116 } 116 }
117 117
118 internal void DoHTTPstop(BaseHttpServer server)
119 {
120 OSHttpResponse response
121 = new OSHttpResponse(new HttpResponse(HttpContext, Request), HttpContext);
122
123 response.SendChunked = false;
124 response.ContentLength64 = 0;
125 response.ContentEncoding = Encoding.UTF8;
126 response.ReuseContext = false;
127 response.KeepAlive = false;
128 response.SendChunked = false;
129 response.StatusCode = 503;
130
131 try
132 {
133 response.OutputStream.Flush();
134 response.Send();
135 }
136 catch (Exception e)
137 {
138 }
139 }
118 } 140 }
119 141
120 class PollServiceHttpRequestComparer : IEqualityComparer<PollServiceHttpRequest> 142 class PollServiceHttpRequestComparer : IEqualityComparer<PollServiceHttpRequest>