aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs
diff options
context:
space:
mode:
authorUbitUmarov2018-12-03 10:17:22 +0000
committerUbitUmarov2018-12-03 10:17:22 +0000
commit79234795fd28c413f4a7d973a64a16ac7d6bd939 (patch)
treec9c1f71842ebcfadda5e861a1fc29eeb4fbc97b2 /OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs
parentstats heap allocation rate can negative (diff)
downloadopensim-SC-79234795fd28c413f4a7d973a64a16ac7d6bd939.zip
opensim-SC-79234795fd28c413f4a7d973a64a16ac7d6bd939.tar.gz
opensim-SC-79234795fd28c413f4a7d973a64a16ac7d6bd939.tar.bz2
opensim-SC-79234795fd28c413f4a7d973a64a16ac7d6bd939.tar.xz
avoid a data copy
Diffstat (limited to 'OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs')
-rw-r--r--OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs b/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs
index 66fd2c6..47a0b9c 100644
--- a/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs
+++ b/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs
@@ -206,11 +206,17 @@ namespace OpenSim.Framework.Servers.HttpServer
206 try 206 try
207 { 207 {
208 if(rangeLen > 0) 208 if(rangeLen > 0)
209 response.OutputStream.Write(buffer, rangeStart, rangeLen); 209 {
210 response.RawBufferStart = rangeStart;
211 response.RawBufferLen = rangeLen;
212 response.RawBuffer = buffer;
213 //response.OutputStream.Write(buffer, rangeStart, rangeLen);
214 }
210 215
211 buffer = null; 216 buffer = null;
212 217
213 response.Send(); 218 response.Send();
219 response.RawBuffer = null;
214 } 220 }
215 catch (Exception ex) 221 catch (Exception ex)
216 { 222 {