简体   繁体   中英

PHP-FPM browser returning empty response

I recently reconfigured my server to use Lighttpd+PHP5-FPM. I have almost the same configuration on my localhost (using CGI on Windows, while ubuntu on the server). 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.

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.

Any ideas?

Since I'm using ELB from AWS, it has a timeout of 60 seconds. 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.

Source: Elastic Load Balancer: HTTP Connections time out after 60 seconds .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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