LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Ajax Timeout in different Network (https://www.linuxquestions.org/questions/linux-newbie-8/ajax-timeout-in-different-network-4175544780/)

ronelvcabrera 06-08-2015 12:24 AM

Ajax Timeout in different Network
 
I have searched all over the net about this problem and a bunch came out but they did not provide a definite solution for the problem.
I saw this post http://www.linuxquestions.org/questi...18#post5373818 but there was no solution provided. I posted it here because there might be a configuration in there server needed, and yes the server is in Linux OS, CentOS to be exact.

The issue is that, I have Web Application, this is already in a public DNS, that generates report and then exports this as Excel file. When I try this in my network I was able to get the excel file with 5-6 minutes of execution of the Ajax.

But when my client execute this, in a different geography as where I am, the ajax request will expire (timeout) for 30 seconds ONLY! I dont understand why only 30 seconds but when I execute this it will reach up to 6 minutes.

in my php.ini, I already set this up:
Code:

max_execution_time = 0
 max_input_time = 0

and in my php, I put this up in the start of the script:

PHP Code:

    set_time_limit(0); 


in my ajax request, BTW I am using EXTJS 4:
Code:

  Ext.Ajax.request({
      url: 'validurl',
      params: {},
      method: "POST",
      waitMsg: "Exporting data. Please wait....",
      timeout: 900000,
  ......
  ......

What/Where could be the issue?application?network?server? how do I resolve this?

Thank you.

joec@home 06-08-2015 04:50 PM

I'm not so sure about this max_execution_time of being zero. This is said to be zero in the documentation for command line, not from the web server. So from local host it might work but I simply see this as being unable to process remote requests. Try looking up with time out for which ever SQL server you are using and match to that time.


All times are GMT -5. The time now is 02:49 AM.