You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Fedor Indutny (JIRA)" <ji...@apache.org> on 2010/12/08 11:27:01 UTC

[jira] Updated: (COUCHDB-978) jquery.couch.js: db.changes().stop() should abort XMLHTTPRequest

     [ https://issues.apache.org/jira/browse/COUCHDB-978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fedor Indutny updated COUCHDB-978:
----------------------------------

    Attachment: 0001-jquery.couch.js-db.changes-.stop-should-abort-XMLHTT.patch

Proposed fix

> jquery.couch.js: db.changes().stop() should abort XMLHTTPRequest
> ----------------------------------------------------------------
>
>                 Key: COUCHDB-978
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-978
>             Project: CouchDB
>          Issue Type: Bug
>    Affects Versions: 1.0.1
>         Environment: Doesn't matter
>            Reporter: Fedor Indutny
>         Attachments: 0001-jquery.couch.js-db.changes-.stop-should-abort-XMLHTT.patch
>
>
> Suppose you're listening for the db changes:
> var promise = app.db.changes(0);
> And want to stop listening:
> promise.stop();
> But it will only prevent reconnecting and event triggering, while XMLHTTPRequest will be still active (just until server responds).
> My patch is fixing this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.