incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randall Leeds <randall.le...@gmail.com>
Subject Re: _changes feed continuous mode hangs up after 90 seconds
Date Wed, 22 Jun 2011 23:52:42 GMT
On Wed, Jun 22, 2011 at 16:27, Jens Alfke <jens@mooseyard.com> wrote:
>
> I’m guessing that, contrary to the docs, there is a default timeout in
> continuous mode, and I’ll have to add something like “&timeout=9999999999”
> to the URL to defeat this?
> (This is the 1.1.1 CouchBase Server Community Edition, on Mac OS X 10.6.7.)
> —Jens
> [1] http://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.

Mime
View raw message