472,121 Members | 1,578 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,121 software developers and data experts.

Does ASP.NET wait for the entire request body before executing the ASP page?

Hi.

I have an ASP page that will receive a lot of post data ( sometimes many
MB! ).
The ASP page processes the data sequentially, but does not need the entire
data stored in memory.

Therefore it is cruicial that executing the ASP page doesn't wait for the
entire request to arrive.
Then I would just begin to chunk my way through the Request.InputStream.

So my question is, will processing my ASP page begin before the entire
request has been received or not? Or is that something that can be
configured somewhere?

Thanks in advance,
Peter Strĝiman
Nov 17 '05 #1
4 1515
If you are dealing with streaming data, I would opt for a different
mechanism than an ASP page. WIthout understanding what you are trying to do,
I am in the dark as to how best to help you.

With a normal ASP.NET page, or ASP page for that matter, the Request is
small. The idea being that you are simply requesting a page, rather than
using the form send mechanism as a means of transfering large amounts of
data. Certainly, you can start Flushing the Response prior to grabbing the
data from the Request object, but an ASPX page is not the best data
receiver.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Peter Strĝiman" <blah@blahblahblah> wrote in message
news:Os*************@tk2msftngp13.phx.gbl...
Hi.

I have an ASP page that will receive a lot of post data ( sometimes many
MB! ).
The ASP page processes the data sequentially, but does not need the entire
data stored in memory.

Therefore it is cruicial that executing the ASP page doesn't wait for the
entire request to arrive.
Then I would just begin to chunk my way through the Request.InputStream.

So my question is, will processing my ASP page begin before the entire
request has been received or not? Or is that something that can be
configured somewhere?

Thanks in advance,
Peter Strĝiman

Nov 17 '05 #2
If you are dealing with streaming data, I would opt for a different
mechanism than an ASP page. WIthout understanding what you are trying to do,
I am in the dark as to how best to help you.

With a normal ASP.NET page, or ASP page for that matter, the Request is
small. The idea being that you are simply requesting a page, rather than
using the form send mechanism as a means of transfering large amounts of
data. Certainly, you can start Flushing the Response prior to grabbing the
data from the Request object, but an ASPX page is not the best data
receiver.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Peter Strĝiman" <blah@blahblahblah> wrote in message
news:Os*************@tk2msftngp13.phx.gbl...
Hi.

I have an ASP page that will receive a lot of post data ( sometimes many
MB! ).
The ASP page processes the data sequentially, but does not need the entire
data stored in memory.

Therefore it is cruicial that executing the ASP page doesn't wait for the
entire request to arrive.
Then I would just begin to chunk my way through the Request.InputStream.

So my question is, will processing my ASP page begin before the entire
request has been received or not? Or is that something that can be
configured somewhere?

Thanks in advance,
Peter Strĝiman

Nov 17 '05 #3
Thanks for your reply.

I am dealing with streaming data. To be exact, I want to stream files ( +
some header information that I'll deal with - but disregard that for the
sake of argument. That's still just a part of the stream). Thus when my aspx
page receives the request, the data should be written to disk as it comes
in.
And I completely agrees with you that technically ASPX pages are not the
perfect choice. But it's a lot easier writing and debugging than creating a
windows service - which is the only alternative I can come to think of if I
want 24/7 operation.

But the question still is - will the page be executed before all the entire
request body has been received?

"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamM> wrote in
message news:OU**************@TK2MSFTNGP09.phx.gbl...
If you are dealing with streaming data, I would opt for a different
mechanism than an ASP page. WIthout understanding what you are trying to do, I am in the dark as to how best to help you.

With a normal ASP.NET page, or ASP page for that matter, the Request is
small. The idea being that you are simply requesting a page, rather than
using the form send mechanism as a means of transfering large amounts of
data. Certainly, you can start Flushing the Response prior to grabbing the
data from the Request object, but an ASPX page is not the best data
receiver.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Peter Strĝiman" <blah@blahblahblah> wrote in message
news:Os*************@tk2msftngp13.phx.gbl...
Hi.

I have an ASP page that will receive a lot of post data ( sometimes many
MB! ).
The ASP page processes the data sequentially, but does not need the entire data stored in memory.

Therefore it is cruicial that executing the ASP page doesn't wait for the entire request to arrive.
Then I would just begin to chunk my way through the Request.InputStream.

So my question is, will processing my ASP page begin before the entire
request has been received or not? Or is that something that can be
configured somewhere?

Thanks in advance,
Peter Strĝiman


Nov 17 '05 #4
Thanks for your reply.

I am dealing with streaming data. To be exact, I want to stream files ( +
some header information that I'll deal with - but disregard that for the
sake of argument. That's still just a part of the stream). Thus when my aspx
page receives the request, the data should be written to disk as it comes
in.
And I completely agrees with you that technically ASPX pages are not the
perfect choice. But it's a lot easier writing and debugging than creating a
windows service - which is the only alternative I can come to think of if I
want 24/7 operation.

But the question still is - will the page be executed before all the entire
request body has been received?

"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamM> wrote in
message news:OU**************@TK2MSFTNGP09.phx.gbl...
If you are dealing with streaming data, I would opt for a different
mechanism than an ASP page. WIthout understanding what you are trying to do, I am in the dark as to how best to help you.

With a normal ASP.NET page, or ASP page for that matter, the Request is
small. The idea being that you are simply requesting a page, rather than
using the form send mechanism as a means of transfering large amounts of
data. Certainly, you can start Flushing the Response prior to grabbing the
data from the Request object, but an ASPX page is not the best data
receiver.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Peter Strĝiman" <blah@blahblahblah> wrote in message
news:Os*************@tk2msftngp13.phx.gbl...
Hi.

I have an ASP page that will receive a lot of post data ( sometimes many
MB! ).
The ASP page processes the data sequentially, but does not need the entire data stored in memory.

Therefore it is cruicial that executing the ASP page doesn't wait for the entire request to arrive.
Then I would just begin to chunk my way through the Request.InputStream.

So my question is, will processing my ASP page begin before the entire
request has been received or not? Or is that something that can be
configured somewhere?

Thanks in advance,
Peter Strĝiman


Nov 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Ed Brandmark | last post: by
4 posts views Thread by dave | last post: by
5 posts views Thread by Emmanuel Papillon | last post: by
6 posts views Thread by Mark | last post: by
7 posts views Thread by mw | last post: by
4 posts views Thread by puja patel | last post: by
1 post views Thread by =?Utf-8?B?Sm9obiBXYWxrZXI=?= | last post: by
reply views Thread by leo001 | last post: by

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.