From user-return-16810-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Wed Jun 22 23:53:11 2011 Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 843D26D8B for ; Wed, 22 Jun 2011 23:53:11 +0000 (UTC) Received: (qmail 55801 invoked by uid 500); 22 Jun 2011 23:53:09 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 55767 invoked by uid 500); 22 Jun 2011 23:53:09 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 55759 invoked by uid 99); 22 Jun 2011 23:53:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2011 23:53:09 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of randall.leeds@gmail.com designates 209.85.214.52 as permitted sender) Received: from [209.85.214.52] (HELO mail-bw0-f52.google.com) (209.85.214.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2011 23:53:03 +0000 Received: by bwj24 with SMTP id 24so1906681bwj.11 for ; Wed, 22 Jun 2011 16:52:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=qdGIthVBdSgUkV8ALp4DlqyZPeFP4jzh4XaksLaLpM0=; b=ohFN06oPL7JVIilHlEHptnGXGTZZ4DzxseW0UrpLpv1zIFFIQD+cpP4TOqrkNqeqv/ QpIgFN8xHEtSYk+DNEl9El/B9mfDiSn0whLCBjcHuH7gjMIPj/MpjMHkjK7lvd0zgM0B TBM7Hwye919u3CDzjjaEDwQ0zM4GFELMG6xkc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=KT/dJLsNYbAKIVXm+wuIHQhtvYhbDeze9htmHP8+mL0e8CCSKZLvkF26mBBMd24WHr 3mgCYpCcNgDk6EgmzAhq7PsIRZ4aOGjePkKUug2YwCt+KwKjlqOKQzLbqekE6jUZ59zC fmTs7qCVD6+OliWXqjdiy+ehEtwDGEjfwsIN4= MIME-Version: 1.0 Received: by 10.204.85.25 with SMTP id m25mr240507bkl.148.1308786762840; Wed, 22 Jun 2011 16:52:42 -0700 (PDT) Received: by 10.204.72.83 with HTTP; Wed, 22 Jun 2011 16:52:42 -0700 (PDT) In-Reply-To: References: Date: Wed, 22 Jun 2011 16:52:42 -0700 Message-ID: Subject: Re: _changes feed continuous mode hangs up after 90 seconds From: Randall Leeds To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Jun 22, 2011 at 16:27, Jens Alfke wrote: > > I=E2=80=99m guessing that, contrary to the docs, there is a default timeo= ut in > continuous mode, and I=E2=80=99ll have to add something like =E2=80=9C&ti= meout=3D9999999999=E2=80=9D > to the URL to defeat this? > (This is the 1.1.1 CouchBase Server Community Edition, on Mac OS X 10.6.7= .) > =E2=80=94Jens > [1]=C2=A0http://wiki.apache.org/couchdb/HTTP_database_API#Changes You don't want to have an insanely long timeout because then, in the absence of changes, it's impossible to detect that the receiver is gone. You should use the heartbeat parameter instead and make sure whatever client code you use can tolerate the blank new lines.