Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 7495 invoked from network); 10 May 2010 20:55:44 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 May 2010 20:55:44 -0000 Received: (qmail 25165 invoked by uid 500); 10 May 2010 20:55:44 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 25031 invoked by uid 500); 10 May 2010 20:55:43 -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 25021 invoked by uid 99); 10 May 2010 20:55:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 May 2010 20:55:43 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [80.244.253.218] (HELO mail.traeumt.net) (80.244.253.218) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 May 2010 20:55:34 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.traeumt.net (Postfix) with ESMTP id 86C6D1B58F for ; Mon, 10 May 2010 22:55:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.g3th.net Received: from unknown by localhost (amavisd-new, unix socket) id SrszDV68jNwE for ; Mon, 10 May 2010 22:55:11 +0200 (CEST) Received: from [10.0.1.8] (g225143077.adsl.alicedsl.de [92.225.143.77]) (authenticated) by mail.traeumt.net (amavisd-milter) (authenticated as web50m1); Mon, 10 May 2010 22:55:11 +0200 (CEST) (envelope-from ) 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: Jan Lehnardt In-Reply-To: <205E9E03-86E2-4E06-9F91-C6EDB2D1C3D4@googlemail.com> Date: Mon, 10 May 2010 22:55:07 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <2883B2D3-33DE-4960-92A3-78D26BCA2FAC@apache.org> References: <4BE3A40E.9010502@skippinet.com.au> <5A8D3D77-D13C-499E-8CF6-402DE6C3D137@apache.org> <205E9E03-86E2-4E06-9F91-C6EDB2D1C3D4@googlemail.com> To: dev@couchdb.apache.org X-Mailer: Apple Mail (2.1078) X-Virus-Checked: Checked by ClamAV on apache.org On 7 May 2010, at 20:30, Sebastian Cohnen wrote: > I took the liberty to add this information to the wiki :) 100 Internets for you, my good sir :) Cheers Jan -- >=20 > On 07.05.2010, at 18:51, Damien Katz wrote: >=20 >> This is the intent. >>=20 >> 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. >>=20 >> To get around the timeout, you up the changes_timeout in the ini: >>=20 >> [httpd] >> changes_timeout=3D#millisecs >>=20 >> 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. >>=20 >> -Damien >>=20 >>=20 >> On May 6, 2010, at 10:24 PM, Mark Hammond wrote: >>=20 >>> 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 >>=20 >=20