What is the default timeout for AngularJS $http service requests?

Facundo Chambo picture Facundo Chambo · May 31, 2016 · Viewed 11.5k times · Source

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?

Answer

Akshay Kalola picture Akshay Kalola · Jun 14, 2017

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.