Chrome Ajax timeout after 120 seconds?

I'm not sure if this is a configuration error or error, but I continue to receive “ajax” requests “canceled” for exactly 120 seconds. Missing http response code.

The server side runs on the LAMP stack, and php max_execution_time is set to 240 seconds using mod_php5

Oddly enough, if I request the same page without ajax, it will not timeout after 120 seconds.

Early tests show that firefox does the same.

Can someone help with this error / annoyance?

Code example

set_timeout_limit(o); 
sleep(1000);
+3
source share
2 answers

try adding timeout: xxx(in ms) to your AJAX call

Example:

$.ajax({
  url: "test.html",
  timeout: 240000,
  context: document.body,
  success: function(){
    $(this).addClass("done");
  }
});
+4

! set_time_limit (0), script 630 ! , , ! , ! WHM, !;)

-1

All Articles