The problem I am facing:
I send the request from the browser via ajax and send the request for processing as soon as the ajax call is called. I am showing a progress bar popup. The popup window stays on the page somewhere between 2-4 minutes and closes abruptly. When I see the request through the chrome network tab, I see that the request has stalled for the same duration for which the popup window is displayed. I see that the logic runs in the background as expected, but the pop-up did not wait for an answer and closed before it should have.
I set the log level to 7 and I see the information below
if there are 50 records that need to be processed, I see this information before each of these 50 records starts processing (I see the next line 50 times)
[pid = 29768 thr = 70024879087720 file = abstract_request_handler.rb: 472 time = 2016-08-30 08: 06: 43.250]: receiving a new request to the main socket
and finally i see it
[pid = 29571 thr = 139782938920704 file = ext / nginx / HelperAgent.cpp: 923 time = 2016-08-30 08: 10: 32.682]: Failed to redirect the HTTP response back to the HTTP client: it seems the user clicked the Stop button in your browser.
I suspect his timeout problem, but not sure if he is at the passenger or ngnix level.
I tried to set various ngnix timeout options to a higher value, but that did not help.
proxy_read_timeout 400s; client_body_timeout 180s; keepalive_timeout 180s; client_header_timeout 180s; **I suspect it might be some issue with passenger config, but not sure.**
Can someone please let me know what I can do so that the request continues without a sudden end
ruby-on-rails ruby-on-rails-3 nginx passenger
opensource-developer
source share