简体   繁体   English

PHP-FPM浏览器返回空响应

[英]PHP-FPM browser returning empty response

I recently reconfigured my server to use Lighttpd+PHP5-FPM. 我最近将服务器重新配置为使用Lighttpd + PHP5-FPM。 I have almost the same configuration on my localhost (using CGI on Windows, while ubuntu on the server). 我在本地主机上具有几乎相同的配置(在Windows上使用CGI,而在服务器上使用ubuntu)。 I have an AJAX request to a page that usually takes around 1.5 minutes, on server I keep receiving "ERR_EMPTY_RESPONSE" while the same script (same arguments etc) gives the expected JSON response. 我对页面的AJAX请求通常需要大约1.5分钟,在服务器上,我不断收到“ ERR_EMPTY_RESPONSE”,而同一脚本(相同的参数等)给出了预期的JSON响应。

The php timeout is set, no error is given, on Lighty debug log I can see that after the expected time the response is given, but the browser stops after 1 minute, 30 seconds before the real response. 设置了php超时,没有错误,在Lighty调试日志上,我可以看到在给出预期的响应时间之后,但是浏览器在实际响应之前的1分钟(30秒)之后停止了运行。

Any ideas? 有任何想法吗?

Since I'm using ELB from AWS, it has a timeout of 60 seconds. 由于我使用的是来自AWS的ELB,因此超时时间为60秒。 I found out that it can be requested to update the timeout to up to 17 minutes, but there is no way to do that directly on manager console. 我发现可以要求将超时更新最多更新为17分钟,但是无法直接在管理器控制台上执行此操作。

Source: Elastic Load Balancer: HTTP Connections time out after 60 seconds . 来源: Elastic Load Balancer:60秒后HTTP连接超时

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM