
codesite-noreply at google
Nov 25, 2009, 1:14 AM
Post #10 of 40
(3762 views)
Permalink
|
|
Re: Issue 504 in cherokee: 504 Gateway error
[In reply to]
|
|
Comment #27 on issue 504 by alobbs: 504 Gateway error http://code.google.com/p/cherokee/issues/detail?id=504 @jjamor: A few days ago, I committed a few patches for adding custom timeout support to rule entries. That means, a specific rule can define a timeout value, as it can define a encoding method, o a handler plug-in. The target was to allow PHP connections to last longer and the general timeout limit, so the server wouldn't reply a 504 error if the php-cgi was still (hanged) processing the request when the timeout limit was reached. I've just realized that, you might be hitting that issue in the back-end servers. Depending on the wiki software processing speed, the back-end web server might be returning 504 errors whenever that process takes longer than the general timeout limit. In that case, the front-end proxy server would be just relying it to the outside world. I have not probed that theory yet, but it makes good sense to me. The best way to test it would be to add a custom timeout to the Extension PHP rule of the back-end servers. A 35 seconds value would be enough (since php.ini sets 30 seconds of processing limit by default). Hopefully that will fix the issue. Cherokee 0.99.30 will ship an improved version of the PHP wizard. It checks the php.ini file in order to figure the right timeout value. In that way it can set the right timeout value to the rule, so it does not return 504 errors when php scripts takes a "long" time to be executed (longer than the server-wide timeout limit). BTW, I'm talking about PHP, but the underlying idea applies to any other scripting language as well. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings _______________________________________________ Cherokee-dev mailing list Cherokee-dev [at] lists http://lists.octality.com/listinfo/cherokee-dev
|