#40596 [Opn->Fbk]: Running two PHP scripts causes Apache freeze
| From: | tony2001@php.net | Date: | Thu, 22 Feb 2007 22:31:21 +0000 |
| Subject: | #40596 [Opn->Fbk]: Running two PHP scripts causes Apache freeze | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-109349@lists.php.net to get a copy of this message | ||
ID: 40596
Updated by: tony2001@php.net
Reported By: karldray at interchange dot ubc dot ca
-Status: Open
+Status: Feedback
Bug Type: Apache2 related
Operating System: Windows XP SP2
PHP Version: 5.2.1
New Comment:
Please make sure you have a clean system. I.e. no firewalls, no
third-party applications that might affect it. It would be good if try
it on another machine.
Personally I do not believe an issue like this might come unnoticed, so
it looks like your local problem.
Previous Comments:
------------------------------------------------------------------------
[2007-02-22 22:20:50] karldray at interchange dot ubc dot ca
Description:
------------
While two PHP scripts (or two instances of the same script) are
running, Apache (2.2.4) stops responding to any new requests (even for
non-php pages) until one of them finishes.
It doesn't seem to matter what the scripts are actually doing; the same
problem occurs when they're doing any of the following:
-performing calculations (e.g. counting from 1 to 10000000)
-blocking on socket functions
-sleep() ing
Reproduce code:
---------------
wait.php:
<?php sleep(15); ?>
1. Open two browser windows and point them both to wait.php so that
they're running at the same time.
2. Before they finish, open a third browser window and point it to any
other URI on the server (even a non-php page).
Expected result:
----------------
The third window should load immediately.
Actual result:
--------------
The third window does not load until one of the two PHP scripts
finshes.
Note: If the third request is for a PHP page containing an error_log()
at the very beginning, then the logfile output is not generated as long
as the first two pages are running (suggesting that Apache isn't getting
around to starting PHP during this time).
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40596&edit=1