How long does a web request remain valid?

Y

Yash

I implemented a custome async HTTP handler as described at MSDN:
ms-help://MS.VSCC.v90/MS.MSDNQTR.v90.en/dv_vwdcon/html/
1b5c4a27-599b-44d0-8a06-72edc6765aa9.htm

In the async process, I introduced a sleep of 10 minutes. Yet when I
access the page .sample and get the request processed through the
handler, I notice that after 10 min, the response is returned to the
browser. My question is, does IIS remember the HTTP request forever so
that when the async operation completes, it knows where to send the
response?
Isn't there a timeout that should occur if the response is not
returned after x seconds?
If yes, at what end is the timeout implemented, the browser or the
server?

Thanks,
Yash
 
B

bruce barker

iis will keep the request alive as long as the request stream is open.
the browser will wait an unknown amount of time for the request to
reply, once the connection is opened. asp.net has a request timeout (but
its disabled in debug mode).

iis knows nothing about the async handling. iis talks to a pool of
asp.net i/o threads which are independent from the request processing
threads. iis just knows when the request streams are closed. with
keeps-alives, the connection is held open between requests to the browser.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top