1

What is the default timeout set for any kind of AngularJS AJAX calls ($http, $resource or Restangular)? Is no timeout the default one, meaning that, as long as the connection with the server is alive & the server didn't respond yet - there would be no timeout?

Does this differ anyhow from native JavaScript XMLHttpRequest object behavior?

I tried to find it, but all I found was how to set timeout for an explicit $http call.

2
  • Have you tried How to set a global http timeout in AngularJs? Commented Sep 2, 2016 at 8:50
  • this is what I wrote... I'm not interested in setting the timeout - neither for a single request nor globally. I want to know what is the default angularJS (or native JavaScript) behavior in terms of timeout. Without any alterations. Perhaps I'm trying to look in a wrong place, but I would appreciate someone to clarify this to me. Commented Sep 2, 2016 at 9:02

1 Answer 1

0

Try using setting timeout headers in http request.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.