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
Labels
Milestone
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
The text was updated successfully, but these errors were encountered: