Skip to content

Pending Requests and Timeouts #90

@damncabbage

Description

@damncabbage

I've run into two different failure situations, one handled well, the other not:

  1. AJAX requests made while offline to an external server fail immediately with AJAX request failed; I can handle this, choose to retry, etc; this all works fine.
  2. AJAX requests that are open but then stay open with no activity are stuck in a Pending state forever. For example:
    • We make a connection, then the network goes down.
    • We make a connection, but the server never finishes the request (holds it open, sending no data).

As far as I can tell scenario two is handled by the ontimeout event and the timeout attribute, neither of which Affjax uses.

Have I misunderstood something, or is this something that'd need implementing (either in Affjax itself, or exposing the XHR itself like in #71)? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions