Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Can you include connection timeout in Angular js using the ready state? #12349

Closed
jsasid0 opened this issue Jul 15, 2015 · 2 comments
Closed

Comments

@jsasid0
Copy link

jsasid0 commented Jul 15, 2015

In my application, I need to distinguish between connection timeout and read timeout.
Presently in angular the $http cal waits till the read timeout value (e.g 45sec) even though the server connection is not established, which can be identified within (1-2 sec). I need to abort the http call once connection timeout has happened.

In ajax we can do this but checking the xhr.ready state. Refer:
http://www.w3schools.com/ajax/ajax_xmlhttprequest_onreadystatechange.asp

@petebacondarwin
Copy link
Member

I think this would be solved by #1934

@Narretz
Copy link
Contributor

Narretz commented Apr 21, 2017

I believe this should be possible to handle with either d497822 or 106f90a

@Narretz Narretz closed this as completed Apr 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants