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.rb runs for about 4 m开发者_JAVA百科inutes and returns a string as result.
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? 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. This time can be adjusted within certain parameters.
精彩评论