16

In $http docs it does not mention which is the default timeout in case of undefined.

How can I know which is the default value for this configuration?

Facundo Chambo
  • 3,088
  • 6
  • 20
  • 25
  • 1
    there is no timeout by default – floribon May 31 '16 at 13:50
  • So the http connection stays open undefinitely? I'm seeing [ClientAbortException](https://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/catalina/connector/ClientAbortException.html) on the server side. So the only possibility is that the client is leaving the site, isn't it? – Facundo Chambo May 31 '16 at 14:25
  • 1
    I think you have an internal timeout set by the browser to prevent leaks or attacks, not really sure – floribon May 31 '16 at 15:24

1 Answers1

6

At one time the default timeout for http requests was 30 seconds, but now many browsers perform "keep-alive" polling by default so in all practicality there isn't one. I've had http requests sit for several minutes before the server itself finally gave up and issued a timeout.

Akshay Kalola
  • 186
  • 1
  • 8