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

1

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?

Salyer answered 31/5, 2016 at 13:31 Comment(3)
there is no timeout by defaultValued
So the http connection stays open undefinitely? I'm seeing ClientAbortException on the server side. So the only possibility is that the client is leaving the site, isn't it?Salyer
I think you have an internal timeout set by the browser to prevent leaks or attacks, not really sureValued
S
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.

Salinasalinas answered 14/6, 2017 at 11:14 Comment(1)
I observe that requests sits for around 2 minutes until marked as timed out on ff57.Vietcong

© 2022 - 2024 — McMap. All rights reserved.