Hi! In my ASP.NET application I need to send out content to client during a specified time. I use HttpHandler as a decision making mechanism for downloads. In HttpHandler I use Server.Execute method to start appropriate download process. When I didn't used
the handlers then downloads was performed during expected time-frames. But after starting using HttpHandler the downloads will take abouttwise more time then before. Example: if expected download time is 35 seconds the timeload takes actually 69 seconds. In
my downloader I use Thread.Sleep(myInterval) to make downloader wait before sending out next portion of data. My questions are: 1) is it possible that these huge delays are caused by ASP.NET using different threads? (I mean is it correct that Server.Execute
starts new thread?) 2) what topics about threads I have to read to find examples that help me to solve this problem? 3) and over all - how ASP.NET exactly manages HttpHandlers? I had also another performance problems using HttpHandler. (Usual file downloads
bogged down the server, ASP.NET took 70% CPU time and a hell load of memory). With best regards, Gunnar Peipman
Gunnar Peipman
-- General Protection Fault
-- Illegal Page Fault
-- Not My Fault
Member
20 Points
649 Posts
Threading
Mar 09, 2004 06:58 AM|Qnnn|LINK
-- General Protection Fault
-- Illegal Page Fault
-- Not My Fault
None
0 Points
41 Posts
Re: Threading
Apr 03, 2004 04:54 AM|ups101|LINK