Edit report at https://bugs.php.net/bug.php?id=60473&edit=1
ID: 60473
Updated by: kalle@php.net
Reported by: lolautruche at gmail dot com
Summary: Built-in server randomly closes connections
-Status: Assigned
+Status: Open
Type: Bug
Package: Built-in web server
Operating System: Mac OS X 10.7.2 (Lion)
PHP Version: 5.4.0RC2
-Assigned To: laruence
+Assigned To:
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2011-12-09 14:42:56] lolautruche at gmail dot com
Dear Laruence
Please note that I'm using the webserver from a browser (tested with Firefox &
Chrome), with ~60 ressources loaded from the main generated HTML code (images,
css, js...)
------------------------------------------------------------------------
[2011-12-09 14:14:53] lolautruche at gmail dot com
OK, I'll dig.
But another info: this happens regardless there is a router script or not.
An HTTP trace example :
Method: GET
Protocol-Version: HTTP/1.1
Protocol: http
Host: ezpublish.dev
Port: 8000
File: /design/admin2/stylesheets/theme/modalwindow.css
Remote-Address: 127.0.0.1
Client-Address: 127.0.0.1
Start-Time: 2011-12-09T15:10:43.625+01:00
Request-Time: 2011-12-09T15:10:43.629+01:00
Response-Time: 2011-12-09T15:10:43.707+01:00
End-Time: 2011-12-09T15:10:43.710+01:00
Request-Header-Size: 643
Response-Header-Size: 126
Request-Body-Size: 0
Response-Body-Size: 2137
Request-Body-Decoded: false
Response-Body-Decoded: false
Request-Header:<<--EOF-1323439906166-
GET /design/admin2/stylesheets/theme/modalwindow.css HTTP/1.1
Host: ezpublish.dev:8000
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.2
(KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2
Accept: text/css,*/*;q=0.1
Referer: http://ezpublish.dev:8000/plain_site_admin/content/view/full/2
Accept-Encoding: gzip,deflate,sdch
Accept-Language: fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: adminNavigationTab=view; contentStructureMenu=5/2/43;
eZSESSIDa8f71cffda7ca9763445db0b3afb4957=93vhe4inndpt5ghahfjcuofpc6;
is_logged_in=true; XDEBUG_SESSION=netbeans-xdebug
--EOF-1323439906166-
Response-Header:<<--EOF-1323439906166-
HTTP/1.1 200 OK
Host: ezpublish.dev:8000
Connection: closed
Content-Type: text/css; charset=UTF-8
Content-Length: 2137
--EOF-1323439906166-
------------------------------------------------------------------------
[2011-12-09 13:59:51] laruence@php.net
sorry, I mis-understand your router, but I can't reproduce this with the router
you gived...
can you make a deep search, to find a 100% reproduce-able way?
------------------------------------------------------------------------
[2011-12-09 13:35:24] lolautruche at gmail dot com
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
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=60473
--
Edit this bug report at https://bugs.php.net/bug.php?id=60473&edit=1