Questions tagged [ihttpasynchandler]

IHttpAsyncHandler interface allows you to serve content asynchronously from the HTTP handler. It defines the contract that HTTP asynchronous handler objects must implement.

39 questions
68
votes
6 answers

What is an HttpHandler in ASP.NET

What is an HttpHandler in ASP.NET? Why and how is it used?
Nikola Stjelja
  • 3,659
  • 9
  • 37
  • 45
18
votes
6 answers

Using Task or async/await in IHttpAsyncHandler

Since the very begining of writing ASP.NET applications when I wanted to add a threading there are 3 simple ways I can accomplish threading within my ASP.NET application : Using the System.Threading.ThreadPool. Using a custom delegate and…
15
votes
2 answers

Node.Js VS HttpAsync (asp.net)

After reading a lot of stuff about nodejs, I still ask my self : What are the benefits over asp.net HttpAsync requests ? The only limitation ( as I see) is the concurrent number of requests which IIS limits. I tried to paint how I currently…
Royi Namir
  • 144,742
  • 138
  • 468
  • 792
11
votes
4 answers

Why does IHttpAsyncHandler leak memory under load?

I have noticed that the .NET IHttpAsyncHandler (and the IHttpHandler, to a lesser degree) leak memory when subjected to concurrent web requests. In my tests, the Visual Studio web server (Cassini) jumps from 6MB memory to over 100MB, and once the…
Anton
  • 4,554
  • 2
  • 37
  • 60
9
votes
3 answers

How to set IHttpAsyncHandler a timeout?

I've tried to set the executionTimeout in the web.config file: Looking at the IIS Manager Requests page I can see the requests are not being terminated after 30…
Adir
  • 1,423
  • 3
  • 19
  • 32
8
votes
1 answer

IIS 7.0 503 errors with generic handler (.ashx) implementing IHttpAsyncHandler

I'm running into some performance issues using a generic handler that implements IHttpAsyncHandler. At its simplest, the handler receives a GET request, and 20 seconds later ends the response after writing '< timeout / >' to the response. When…
spender
  • 117,338
  • 33
  • 229
  • 351
7
votes
1 answer

When to use System.Threading.ThreadPool and when one of the many custom thread pools?

I'm working on creating an async handler for ASP.NET that will execute a slow stored procedure. I think I understand that to gain additional throughput on a mixed load of slow and fast pages, the slow page needs to be executed on a thread pool…
MatthewMartin
  • 32,326
  • 33
  • 105
  • 164
6
votes
1 answer

Using an IHttpAsyncHandler to call a WebService Asynchronously

Here's the basic setup. We have an ASP.Net WebForms application with a page that has a Flash application that needs to access an external Web Service. Due to (security I presume) limitations in Flash (don't ask me, I'm not a Flash expert at all), we…
BFree
  • 102,548
  • 21
  • 159
  • 201
6
votes
2 answers

What is the best way to upload files with ASP.NET MVC 2?

What is the best method for uploading files of variable size (either very large or very small to an ASP.NET MVC 2 application file system)? This is what I understand so far: It seems like there are two ways that people handle this. (Let's assume…
smartcaveman
  • 41,281
  • 29
  • 127
  • 212
6
votes
2 answers

Pattern for Reusable asynchronous HttpHandler

I'm currently developing a custom HttpHandler (for compressing/combining CSS, but that doesn't matter for this question). I started with a simple reusable=true synchronous HttpHandler like we all know. Now i'm trying to improve it to an asynchronous…
Remco Ros
  • 1,467
  • 15
  • 31
4
votes
1 answer

IHttpAsyncHandler and Request.Filter

I'm attempting to inject a decoding filter in the request pipeline using IHttpAsyncHandler, but am finding that the Request.Filter property is being ignored. Has anyone successfully used Request.Filter along with IHttpAsyncHandler? public class…
dcpar
  • 273
  • 2
  • 10
4
votes
3 answers

How to Make ASP.NET MVC Recognize IHttpAsyncHandler from IRouteHandler.GetHttpHandler()?

In this question & answer, I found one way to make ASP.NET MVC support asynchronous processing. However, I cannot make it work. Basically, the idea is to create a new implementation of IRouteHandler which has only one method GetHttpHandler. The…
Morgan Cheng
  • 73,950
  • 66
  • 171
  • 230
3
votes
1 answer

Why is IHttpAsyncHandler being called over IHttpHandler?

I made a custom handler that derives from MvcHandler. I have my routes using a custom RouteHandler that returns my new handler for GetHttpHandler(), and I override ProcessRequest() in my custom handler. The call to GetHttpHandler is triggering a…
Tim Hardy
  • 1,654
  • 1
  • 17
  • 36
3
votes
1 answer

How to send multiple acknowledgement to client using IHttpAsyncHandler in asp.net

I have implemented IHttpAsyncHandler in my class to perform 5-6 long running process in background and acknowledge to client on start of each task. Earlier I was using one session variable and updating it with current status of task, and giving…
3
votes
1 answer

Trouble sending file through IHttpAsyncHandler

I'm using a IHttpHandler to call a webservice and return the resulting byte[] to the client as a downloaded file attachment. This works fine, but when I tried changing the IHttpHandler to a IHttpAsyncHandler, the file download dialog shows, but…
foson
  • 10,037
  • 2
  • 35
  • 53
1
2 3