The whole site is blocked while one page is waiting for blocking operation (PHP, ASP.NET). Why?

Posted by artvolk on Stack Overflow See other posts from Stack Overflow or by artvolk
Published on 2010-03-13T13:27:24Z Indexed on 2010/03/13 13:35 UTC
Read the original article Hit count: 277

Filed under:
|
|
|

Good day!

I've found interesting behaviour for both LAMP stack and ASP.NET.

The scenario:

There is page performing task in 2-3 minutes (making HttpWebRequest for ASP.NET and curl for PHP). While this page is processed all other requests to this virtual host from the same browser are not processed (even if I use different browsers from one machine). I use two pages written in PHP and C#.

I've tested with Apache+PHP in both mod_php and fast_cgi modes on Windows and Debian. For ASP.NET I use IIS6 (with dedicated app pool for this site and with default app pool) and IIS7 in integrated mode.

I know that it is better to use async calls for such things, but I'm just curious why single page blocks the entire site and not only the thread processing the request?

Thanks in advance!

© Stack Overflow or respective owner

Related posts about php

Related posts about ASP.NET