[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.
some_x at inbox.ru
Mon Sep 19 04:36:43 EDT 2011
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: http://mono.1490590.n4.nabble.com/Problem-with-a-parallel-call-two-or-more-action-methods-MVC-NET-under-mono-handle-of-next-requests-b-tp3823306p3823306.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
More information about the Mono-aspnet-list