aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs
diff options
context:
space:
mode:
authorUbitUmarov2015-12-09 17:20:51 +0000
committerUbitUmarov2015-12-09 17:20:51 +0000
commit4ad7160e054bbce6d133b6f310679c7b1c300a70 (patch)
tree8a31920d40df12e4538164362be1d860a1660b60 /OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs
parentminor cleanup (diff)
downloadopensim-SC_OLD-4ad7160e054bbce6d133b6f310679c7b1c300a70.zip
opensim-SC_OLD-4ad7160e054bbce6d133b6f310679c7b1c300a70.tar.gz
opensim-SC_OLD-4ad7160e054bbce6d133b6f310679c7b1c300a70.tar.bz2
opensim-SC_OLD-4ad7160e054bbce6d133b6f310679c7b1c300a70.tar.xz
minor cleanup
Diffstat (limited to 'OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs')
-rw-r--r--OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs21
1 files changed, 4 insertions, 17 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs b/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs
index 49cd110..0e4a941 100644
--- a/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs
+++ b/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs
@@ -90,29 +90,16 @@ namespace OpenSim.Framework.Servers.HttpServer
90 try 90 try
91 { 91 {
92 response.OutputStream.Write(buffer, 0, buffer.Length); 92 response.OutputStream.Write(buffer, 0, buffer.Length);
93 response.OutputStream.Flush();
94 response.Send();
95 buffer = null;
93 } 96 }
94 catch (Exception ex) 97 catch (Exception ex)
95 { 98 {
96 m_log.Warn("[POLL SERVICE WORKER THREAD]: Error ", ex); 99 m_log.Warn("[POLL SERVICE WORKER THREAD]: Error ", ex);
97 } 100 }
98 finally
99 {
100 //response.OutputStream.Close();
101 try
102 {
103 response.OutputStream.Flush();
104 response.Send();
105 101
106 //if (!response.KeepAlive && response.ReuseContext) 102 PollServiceArgs.RequestsHandled++;
107 // response.FreeContext();
108 }
109 catch (Exception e)
110 {
111 m_log.Warn("[POLL SERVICE WORKER THREAD]: Error ", e);
112 }
113
114 PollServiceArgs.RequestsHandled++;
115 }
116 } 103 }
117 104
118 internal void DoHTTPstop(BaseHttpServer server) 105 internal void DoHTTPstop(BaseHttpServer server)