-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I got a 504 error in 10 minutes of script work #12
Comments
Are you more open-minded than you mean? |
@ionurboz :) |
Im building a chat using this script on localhost all works good, but when I moove scrips to the server it works only about 10 minutes then in console of browser I see 504 error and script stop work. After reloading page it works again the same time. |
What your application name? Maybe the localhost application blocked more live connection? |
On localhost it works good. On server even example script got error. May be I need some configs of nginx or php? |
Maybe this is the root of the problem
Defaults:
|
I have set max_execution_time=3600 but it dosent help |
it's probably a 600 seconds limit on nginx side :) |
I am getting 504 error from nginx too when it reaches its time limit on how long it would wait for a response from php-fpm. What's the best practice? For now I put a time limit into the PHP script, so it would return a json object before the nginx time limit kicks in, then javascript would send another request to the server. IE
By doing this it is combining short-polling and long-polling... but not much choice when you can't control nginx limits from PHP I guess? |
I have a php5.6 nginx 2GB Ram on my server. On localhost it works good. What the problem can it be?
The text was updated successfully, but these errors were encountered: