In my application, I need to distinguish between connection timeout and 
status timeout.
Presently in angular the $http cal waits till the status 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


-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to