Welcome! Log In Create A New Profile

Advanced

Re: FastCGI PHP - unable to prematurely close connection to browser

February 07, 2010 01:30PM
Rob, thank you for the idea! We have used it before on other problems, though I had no idea there are libraries made to address this problem (I used my own solution). Thanks for the link, the projects there look very promising.

However, the way I see it, this approach is only useful if you want to distribute the load across other machines or across time (so that major work is done when the load is lower). In our case the application runs on several machines already and we can add more if necessary. Also, the work MUST be done at about the time the request was issued, so it cannot wait 10 minutes when the load might be lower. I think in that case the only solution is to compute when we get the requests, with the possible optimization of returning the output before all work is done. Or am I mistaken?

When the requests start getting slow (because they are waiting for other requests to finish) we can just add more machines (or enlarge max. number of PHP processes limit first ;) and we're done.

So, still searching for the culprit that doesn't close the connection to browser when Content-Length is reached... :) Any ideas?

Or is this a FastCGI issue? Is there any other way to use PHP with NginX?

Thanks again!
Subject Author Posted

FastCGI PHP - unable to prematurely close connection to browser

cactus February 06, 2010 05:00AM

Re: FastCGI PHP - unable to prematurely close connection to browser

Hoang Hoang February 06, 2010 10:32AM

Re: FastCGI PHP - unable to prematurely close connection to browser

cactus February 07, 2010 06:30AM

Re: FastCGI PHP - unable to prematurely close connection to browser

Rob Schultz February 07, 2010 12:08PM

Re: FastCGI PHP - unable to prematurely close connection to browser

Reinis Rozitis February 08, 2010 06:42AM

Re: FastCGI PHP - unable to prematurely close connection to browser

cactus February 14, 2010 09:28AM

Re: FastCGI PHP - unable to prematurely close connection to browser

cactus February 07, 2010 01:30PM

Re: FastCGI PHP - unable to prematurely close connection to browser

Rob Schultz February 07, 2010 01:54PM

Re: FastCGI PHP - unable to prematurely close connection to browser

cactus February 07, 2010 02:48PM

Re: FastCGI PHP - unable to prematurely close connection to browser

Tobia Conforto February 08, 2010 04:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 120
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready