Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 210
Facundo Chambo Avatar asked May 31 '16 13:05

Facundo Chambo


1 Answers

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.

like image 142
Akshay Kalola Avatar answered Oct 15 '22 14:10

Akshay Kalola