Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 90847 invoked from network); 7 May 2010 16:52:27 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 May 2010 16:52:27 -0000 Received: (qmail 45210 invoked by uid 500); 7 May 2010 16:52:26 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 45140 invoked by uid 500); 7 May 2010 16:52:26 -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 45132 invoked by uid 99); 7 May 2010 16:52:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 May 2010 16:52:25 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.68.5.16] (HELO relay02.pair.com) (209.68.5.16) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 07 May 2010 16:52:17 +0000 Received: (qmail 24030 invoked from network); 7 May 2010 16:51:54 -0000 Received: from 74.1.186.35 (HELO ?10.0.1.205?) (74.1.186.35) by relay02.pair.com with SMTP; 7 May 2010 16:51:54 -0000 X-pair-Authenticated: 74.1.186.35 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1078) Subject: Re: _changes timeout has a max of 60 seconds? From: Damien Katz In-Reply-To: <4BE3A40E.9010502@skippinet.com.au> Date: Fri, 7 May 2010 09:51:54 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <5A8D3D77-D13C-499E-8CF6-402DE6C3D137@apache.org> References: <4BE3A40E.9010502@skippinet.com.au> To: dev@couchdb.apache.org X-Mailer: Apple Mail (2.1078) X-Virus-Checked: Checked by ClamAV on apache.org This is the intent. The max timeout value is set in the ini. The reason we do this is to = prevent lots of undetected dead connections using up resources, which = can happen if the TCP connection dies abnormally. To get around the timeout, you up the changes_timeout in the ini: [httpd] changes_timeout=3D#millisecs Or you have the server send a heartbeat. Then the connection can stay = open indefinitely, and the heartbeats cause dead connections to be = detected by the server. -Damien On May 6, 2010, at 10:24 PM, Mark Hammond wrote: > I'm trying to use _changes with feed=3Dcontinuous and a timeout = greater than the default - however, couch always uses the default of 60 = seconds. Timeouts smaller than the default work as expected. It seems = get_changes_timeout/2 in couch_changes.erl is responsible for this by = selecting the smallest of the specified and default timeout. >=20 > While is sounds reasonable to have a default of 60 seconds, there = doesn't seem to be an obvious case for also making that the max - *some* = maximum might be reasonable, but 60 seconds seems pretty low. Should I = open a bug, or is this really the intent? If the latter, I'll update = the wiki accordingly... >=20 > Thanks, >=20 > Mark