I have the following method in my GenericHandler.ashx:
private void T1()
{
System.Threading.Thread.Sleep(2000);
Ctx.Response.Write(Serializer.Serialize(new { foo = "bar" }));
}
If I make 2 $.ajax
-calls to the handler simultaneously, I will get the first response after 2 seconds, and the next after 4.
Is there any way to make my GenericHandler.ashx handle both ajax calls simultaneously?