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!
It seems you open standard php session that is open until end of request. That means session file is locked. Use session_write_close() soon as possible if you don’t need session data already.