[Mono-aspnet-list] Problem with a parallel call two or more action methods (MVC.NET) under mono - handle of next requests begins only after the previous will be completed.
mabra at manfbraun.de
mabra at manfbraun.de
Mon Sep 19 10:31:48 EDT 2011
Show your server side handler [I have not read the zip] ...
This is usually a problem of session handling of the server side.
If session handling is enabled, the ASP.NET thread uses a lock
on the session object, which cause the seconds request to hung/wait.
You must use a webhandler with session mode read-only, if you
[Sorry, this is a re-send, because I accidentally forgot the list ... ;-) ]
From: mono-aspnet-list-bounces at lists.ximian.com
[mailto:mono-aspnet-list-bounces at lists.ximian.com] On Behalf Of some_x
Sent: Monday, September 19, 2011 10:37 AM
To: mono-aspnet-list at lists.ximian.com
Subject: [Mono-aspnet-list] Problem with a parallel call two or more action
methods (MVC.NET) under mono - handle of next requests begins only after the
previous will be completed.
Hello. First of all - sorry for english, i am not native speaker.
Has faced such problem - under mono (tested with xsp4 or nginx, ASP.NET MVC2
and mono 2.10.2) in case web page make two ajax requests, handling of the
second will begin only after end of the first action method.
Here solution with problem demonstration -
The project has implementation of two action methods Test/Test1 (the method
simply delays execution for 5 seconds) and Test/Test2 (the asynchronous
method, launches a thread which do nothing 5 seconds, on termination of a
thread action method return response).
There are two buttons on page(Test/index view) which do on two simultaneous
requests to Test1 and Test2 (accordingly). Upon termination of request, time
of execution one is display. Result in vs 2010
http://imageshack.us/photo/my-images/62/93514479.png/, result in case of
xsp4 or ngnix http://imageshack.us/photo/my-images/717/xspp.png/.
View this message in context:
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
Mono-aspnet-list mailing list
Mono-aspnet-list at lists.ximian.com
More information about the Mono-aspnet-list