gpt4 book ai didi

PHP 本地服务器无效请求(意外的 EOF)

转载 作者:IT王子 更新时间:2023-10-29 01:02:38 25 4
gpt4 key购买 nike

在每次执行后,无论是否执行 - 当使用 Chrome 网络浏览器时,PHP 本地服务器都会抛出此错误:

Invalid request (Unexpected EOF) \n

它不会引起任何明显的问题;但是,由于这是一个持续存在的问题,我想知道以后是否会有什么事情困扰我。

有什么想法吗?

Note: it happens roughly 10 seconds after any page is executed.

Further note: This happens after all executions, even when the files are ended correctly:

<?php echo 'hey'; ?> 

仍然会抛出上述错误。

[Thu Mar 19 09:39:55 2015] 127.0.0.1:53923 [200]: /admin [Thu Mar 19 09:40:05 2015] 127.0.0.1:53924 Invalid request (Unexpected EOF)

这是完整的错误。

最佳答案

这是一个已知错误。

来自 https://bugs.php.net/bug.php?id=60471 :

[2011-12-08 15:01 UTC] lolautruche at gmail dot com Description:
------------
From time to time, built-in server with router script logs this kind of stuff :

[Thu Dec 8 13:39:29 2011] 127.0.0.1:50358 Invalid request (Unexpected EOF)

This happens quite randomly, whatever the script has a close tag or not, whatever it has a blank line after close tag or not.

以及解释:

[2012-02-23 18:45 UTC] michal dot pipa dot xsolve at gmail dot com
...
Chromium has feature called "Predict network actions to improve page load performance" and its enabled by default. It works this way, that if HTML page has links to some resources, than Chromium opens about 10 TCP connections in advance. And then if browser has less than 10 resources to fetch, unused connections times out after 10 seconds. And this (empty payload) causes PHP server to display "Invalid request (unexpected EOF)" message.

这是来自 PHP 内置服务器的无害错误。

关于PHP 本地服务器无效请求(意外的 EOF),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29141240/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com