[英]Controller waiting for response and then the application fails Ruby on rails
My Controller waits for a response from a lib folder ruby file which it is calling. 我的控制器等待它正在调用的lib文件夹ruby文件的响应。
lib.rb runs for about 4 minutes and returns a string as result. lib.rb运行约4分钟,并返回一个字符串作为结果。
The controller waits for the string response and then application breaks after a minute showing Internal Server Error 控制器等待字符串响应,然后在一分钟后显示内部服务器错误的应用程序中断
what should i Do? 我该怎么办?
Regards 问候
Can you describe in more detail what this "lib" is doing? 您能否更详细地描述此“ lib”在做什么? If it is intended to take a long time you will have to adjust your server settings so it is not prematurely timed out.
如果要花费很长时间,则必须调整服务器设置,以免过早超时。
For example, Apache will produce a server error if it does not receive a response from your application in a timely manner. 例如,如果Apache没有及时收到您应用程序的响应,它将产生服务器错误。 This time can be adjusted within certain parameters.
可以在某些参数内调整此时间。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.