Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 39886 invoked from network); 7 Dec 2010 04:27:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Dec 2010 04:27:15 -0000 Received: (qmail 46872 invoked by uid 500); 7 Dec 2010 04:27:14 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 46579 invoked by uid 500); 7 Dec 2010 04:27:14 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 46571 invoked by uid 99); 7 Dec 2010 04:27:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Dec 2010 04:27:13 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of fedor.indutny@gmail.com designates 209.85.213.52 as permitted sender) Received: from [209.85.213.52] (HELO mail-yw0-f52.google.com) (209.85.213.52) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Dec 2010 04:27:06 +0000 Received: by ywf9 with SMTP id 9so6865559ywf.11 for ; Mon, 06 Dec 2010 20:26:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=sNASM6Qp39CXEQUaQMwueJRC86+x3cCZx3iEbfPWKLM=; b=uC7v9EbNH9vESZ8A/npAYjcH4gYKUPrFjePdIdsglICerGpSi6HtgLWz9MDBfzw+vN 7S7zHIEP0JJ8rQUocpbOYydg+hU4ivdvIQvxp7v+ewbHVLYNhdepuJ/68RBQXxxPPG1C u7sR9oZal3snqG6BYjpSqMMWNYbtcouHCe3Zw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=TVti5Wj8A7GyvddXC5GGvKlWSBP5nGNODDQRn3bUAbHxUR9kDYe5fcsTAf8DX8f4Ca x06EVFlmeiBB2NKMGocvu0I63YDXBcyKCNsba/APOGC1WRbypJUUB+t81tNSpKSZonVP X6dQt2qRdXy4qBeWDac/3A36IrSWC8NKRf3vg= Received: by 10.42.219.2 with SMTP id hs2mr1614590icb.28.1291696005418; Mon, 06 Dec 2010 20:26:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.227.4 with HTTP; Mon, 6 Dec 2010 20:26:30 -0800 (PST) From: Fedor Indutny Date: Tue, 7 Dec 2010 10:26:30 +0600 Message-ID: Subject: jquery.couch.js: abort XMLHTTPRequest on changes().stop() To: dev@couchdb.apache.org Content-Type: multipart/alternative; boundary=20cf305642878f98100496ca6904 X-Virus-Checked: Checked by ClamAV on apache.org --20cf305642878f98100496ca6904 Content-Type: text/plain; charset=ISO-8859-1 Hi everyone! 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. Link to pull request: https://github.com/apache/couchdb/pull/3 -- Cheers, Fedor Indutny. Skype: fedor.indutny Gtalk: fedor.indutny@gmail.com Github: http://github.com/donnerjack13589 --20cf305642878f98100496ca6904--