Bug #60471 [Com]: Random "Invalid request (unexpected EOF)" using a router script

From: Date: Tue, 16 Aug 2016 14:31:07 +0000
Subject: Bug #60471 [Com]: Random "Invalid request (unexpected EOF)" using a router script
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-203310@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60471&edit=1

 ID:                 60471
 Comment by:         victor at tuxayo 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:

@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.


Previous Comments:
------------------------------------------------------------------------
[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

------------------------------------------------------------------------
[2015-06-02 09:13:57] stephane at winnepenninckx dot com

Mac OS X 10.10.3 and PHP 5.6.5, this bug does no harm but I lost some time.

------------------------------------------------------------------------


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


Thread (29 messages)

« previous php.bugs (#203310) next »