473,498 Members | 1,737 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Stop iis response stream internal buffering

Hello -

Ive created an HttpHandler for uploading binary files to an http compliant
client (not a browser). These files I upload are fairly large around 256 MB.
My code essentially chunks up the file into small pieces and writes it to
the response stream (using response.BinaryWrite.). I have the response
property BufferOutput set to false and disabled all caching using
SetCacheability(HttpCacheability.NoCache).
Sessionstate is also disabled.

Recently I noticed my code will have finished chunking and writing the file
to the response stream and the client will only have received about 5% of the
file. It appears the uploaded file is first being buffered in the response
stream before being sent to the client. How can I prevent this? I want the
response stream to
immediately send the file chunks directly to the server w/o any iis
bufffering (preferably by blocking) when I call BinaryWrite. Another side
effect of this problem is the iis process is consuming huge amounts of ram
since its holding the entire response stream in memory. Can this be
prevented or is this IIS's default behavior?


Jun 1 '07 #1
0 1185

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

24
2712
by: Hendrik Schober | last post by:
Hi, I have a 'std::istream' and need to read its whole contents into a string. How can I do this? TIA; Schobi
9
3974
by: kernelxu | last post by:
hi,everybody. I calling function setbuf() to change the characteristic of standsrd input buffer. some fragment of the progrem is: (DEV-C++2.9.9.2) #include <stdio.h> #include <stdlib.h> int...
2
2063
by: I. Adler | last post by:
hi when the user is pressing the stop button in the browser toolbar my aspnet code on the server ist still runnig! how can i stop this code on the webserver? the stop button doesnt fire any...
3
2434
by: Brad | last post by:
I have a response filter which injects "standard" html into my pages. The filter works fine when the initial stream is small enough not to buffer...or....if I have a large unbuffered stream (i.e. I...
4
2293
by: fastback66 | last post by:
Evidently per the C++ standard, it is not possible to measure the distance between two stream iterators, because two non-end-of-stream iterators are equal when they are constructed from the same...
12
7869
by: Jim Rodgers | last post by:
I have a big asp file that has an error under certain conditions -- totally repeatable. However, it only fails when I set response.buffer = True at the top. WHen I set it False in order to debug...
8
2065
by: Paul | last post by:
Hi all, I'm probably missing something obvious here, but occasionally the response stream for pages on my site is cutting off leaving incomplete HTML and an ugly page. Response.Buffer is set...
2
4215
by: Ron Hinds | last post by:
I'm getting this in an ASP application on IIS6/W2K3. The page in question is trying to return a XML file approximately 45MB in size. Changing this is not an option. Worked fine on IIS5/W2K. I tried...
1
3194
by: coolsti | last post by:
I am having a curious problem with Vista working on a Lenovo thinkpad. To test and demonstrate this problem, I have a PHP script that does not terminate. It enters an infinite loop where it...
0
7125
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7165
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7205
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6887
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5462
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4590
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3093
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
291
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.