what is the default timeout for $http ?

4,687 views
Skip to first unread message

asicfr asicfr

unread,
Mar 26, 2015, 12:25:44 PM3/26/15
to ang...@googlegroups.com
Hi, just a stupid and simple question, what is the default timeout for $http ?
If not why ?

Thx

Samuel Castro e Silva

unread,
Mar 26, 2015, 12:30:50 PM3/26/15
to ang...@googlegroups.com
This depends of the server response, there is no default timeout, that time vary in each case.

Regards,
Samuel

--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.



--

Samuel Castro

Full Stack Developer

(37) 9110-8850

Michael Bielski

unread,
Mar 26, 2015, 12:37:57 PM3/26/15
to ang...@googlegroups.com
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.
Reply all
Reply to author
Forward
0 new messages