Bug #60473 [Fbk->Asn]: Built-in server randomly closes connections
| From: | lolautruche at gmail dot com | Date: | Fri, 09 Dec 2011 13:35:24 +0000 |
| Subject: | Bug #60473 [Fbk->Asn]: Built-in server randomly closes connections | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-165770@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60473&edit=1
ID: 60473
User updated by: lolautruche at gmail dot com
Reported by: lolautruche at gmail dot com
Summary: Built-in server randomly closes connections
-Status: Feedback
+Status: Assigned
Type: Bug
Package: Built-in web server
Operating System: Mac OS X 10.7.2 (Lion)
PHP Version: 5.4.0RC2
Assigned To: laruence
Block user comment: N
Private report: N
New Comment:
Hi
Unfortunately, trying to print something doesn't help since PHP webserver doesn't
serve the ressource. Trying to call error_log() before returning false doesn't
seem to help either.
How can SCRIPT_NAME be invalid ?
Thanks
Previous Comments:
------------------------------------------------------------------------
[2011-12-09 13:11:39] laruence@php.net
Hi, if there is no any error message in log, then it must because you return false
at your route script if the script_name is not valid.
you can try print something just above the last "return false" statement.
thanks
------------------------------------------------------------------------
[2011-12-09 09:09:44] lolautruche at gmail dot com
Hi
No, I mean that there is no response at all. The browser opens the connection and
the built-in server closes it "unexpectedly"
------------------------------------------------------------------------
[2011-12-09 05:45:56] laruence@php.net
Hi, what do you mean by "connection closed"?
500 error?
------------------------------------------------------------------------
[2011-12-08 16:22:22] lolautruche at gmail dot com
Description:
------------
When using built-in server with a regular PHP application (eZ Publish in my
case), and with many design ressources going through the server, it regularly
fails to serve some ressources to the browser (randomly).
I'm using a router with rewrite rules emulations (with regexp), so it might come
from here, but there is no error logged anywhere :-(
Please note that this has been tested with only one user.
Test script:
---------------
php -S localhost:8000 router.php
My router script : https://gist.github.com/1447481
Expected result:
----------------
All requested ressources should be served, or at least there should be an error
message explaining why connection has been closed
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60473&edit=1