Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was 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

Description

@jsasid0

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions