diff options
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs | 21 |
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) |