Problem i am facing is:
I am issuing a request from browser via ajax and send the request for processing, once the ajax call is made i show a popup with progress bar, the popup remains on page for roughly any where between 2 to 4 mins and closes abruptly. When i see the request via chrome network tab i see that request is stalled for the same duration for which popup displays. I see that the logic is executing in the background as expected but the popup did not wait for the response and closes before it is supposed to.
I have set the log level to 7 and i see the below information
if there are 50 records to be processed i see this information before each of those 50 records start the processing(i.e i see the below line 50 times)
[ pid=29768 thr=70024879087720 file=abstract_request_handler.rb:472 time=2016-08-30 08:06:43.250 ]: Accepting new request on main socket
and lastly i see this
[ pid=29571 thr=139782938920704 file=ext/nginx/HelperAgent.cpp:923 time=2016-08-30 08:10:32.682 ]: Couldn't forward the HTTP response back to the HTTP client: It seems the user clicked on the 'Stop' button in his browser.
I suspect its some timeout issue but not sure if its at passenger level or ngnix level.
I have tried setting various ngnix timeout parameters to a higher value but it has 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 anyone please let me know what I can do so that the request continues without abruptly ending