Edit report at https://bugs.php.net/bug.php?id=60471&edit=1
ID: 60471
Comment by: admin at codeanimu dot net
Reported by: lolautruche at gmail dot com
Summary: Random "Invalid request (unexpected EOF)" using a
router script
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:
I've had the occur quite often when testing using PhantomJS as well. Completely freezes the
tests which is annoying.
Had it occur both locally on Windows & remotely on Linux. Both running PHP7.
Strangely it only seems to occur when loading in CSS/JS libraries.
Previous Comments:
------------------------------------------------------------------------
[2016-08-16 14:31:05] victor at tuxayo dot net
@mike
I think I managed to disable the keep alive in PhantomJS (by adding "Connection":
"close" in the headers of each request) and can still reproduce the issue.
@laruence
If this issue is only a warning, would this mean it's unrelated to my issue with my browser
(PhantomJS) waiting infinitely a response from the server? Which doesn't happen with Apache.
------------------------------------------------------------------------
[2016-08-04 09:44:17] victor at tuxayo dot net
I was able to also reproduce with PHP 5.6.24
------------------------------------------------------------------------
[2016-08-04 09:28:07] victor at tuxayo dot net
I think I've got the same issue with php 7.0.9
Using the PhantomJS 2.1 browser (which uses webkit) for automated tests.
I have a test that logs in my app and goes to the main page.
When running the test in loop, in less than 50 runs (usually 15) the test freezes. PhantomJS is
waiting for a response from the server which never comes.
And the logs always show an Invalid request (Unexpected EOF) at that moment.
[theDate] theIP:50492 [200]: /resources/
[theDate] theIP:50496 [200]: /resources/css/style.css
[theDate] theIP:50498 [200]: /resources/css/thickbox.css
[theDate] theIP:50500 [200]: /resources/css/datePicker.css
[theDate] theIP:50502 [200]: /resources/css/jquery.autocomplete.css
[theDate] theIP:50504 [200]: /resources/css/jquery.tooltip.css
[theDate] theIP:50716 [200]: /resources/js/plugins/jquery.js
[theDate] theIP:50712 [200]: /resources/js/plugins/ajaxupload.3.5.js
[theDate] theIP:50706 Invalid request (Unexpected EOF)
[theDate] theIP:50710 [200]: /resources/js/plugins/jquery.autocomplete.js
[theDate] theIP:50714 [200]: /resources/js/plugins/Gettext.js
[theDate] theIP:50708 [200]: /resources/js/plugins/translate.js
[theDate] theIP:50722 [200]: /resources/js/index.js
[theDate] theIP:50718 [200]: /resources/js/plugins/date.js
[theDate] theIP:50720 [200]: /resources/js/plugins/jquery.datePicker.js
[theDate] theIP:50724 [200]: /resources/js/common.js
------------------------------------------------------------------------
[2016-05-13 20:41:53] tomer dot leader at gmail dot com
Same issue at PHP 5.5.12 Development Server on windows.
------------------------------------------------------------------------
[2015-11-24 22:34:06] alex311es at gmail dot com
Same error
Mac 10.10.5
PHP 5.6.15 (cli) (built: Oct 31 2015 07:39:24)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
with Xdebug v2.3.3, Copyright (c) 2002-2015, by Derick Rethans
------------------------------------------------------------------------
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=60471
--
Edit this bug report at https://bugs.php.net/bug.php?id=60471&edit=1