我部署Rails应用程序nginx的和乘客,还有很长的运转轨道的行动,这样的事情:是nginx的超时或轨道超时
def handler
sleep 100
respond_to do |format|
format.json { render :json=>{:success=>true}}
end
end
然而,Nginx的错误日志打印此消息:
Couldn't forward the HTTP response back to the HTTP client: It seems the user clicked on the 'Stop' button in his browser.
显然,通过单击停止按钮不会调用此错误。也许nginx超时或超时或超时,如何解决这个问题,是否可以通过配置文件来解决。有没有什么帮助
Rails没有请求超时。我认为这是enginx你的情况:http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_connect_timeout或http://www.nginxtips.com/504-gateway-time-out-using-nginx/ – DiegoSalazar 2014-09-30 15:28:18
这是因为您使用乘客内置的Nginx模块,通过上游配置开始使用独立进程,问题应该修复。 – Anatoly 2014-10-01 10:41:30
thx,我找到了原因,我使用extjs Ajax请求前面,默认超时是30秒。 – 2014-10-02 03:05:36