Return-Path: Delivered-To: apmail-incubator-couchdb-dev-archive@locus.apache.org Received: (qmail 58313 invoked from network); 23 Nov 2008 07:45:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Nov 2008 07:45:20 -0000 Received: (qmail 77346 invoked by uid 500); 23 Nov 2008 07:45:29 -0000 Delivered-To: apmail-incubator-couchdb-dev-archive@incubator.apache.org Received: (qmail 77286 invoked by uid 500); 23 Nov 2008 07:45:29 -0000 Mailing-List: contact couchdb-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-dev@incubator.apache.org Received: (qmail 77275 invoked by uid 99); 23 Nov 2008 07:45:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Nov 2008 23:45:29 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of paul.joseph.davis@gmail.com designates 209.85.198.244 as permitted sender) Received: from [209.85.198.244] (HELO rv-out-0708.google.com) (209.85.198.244) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Nov 2008 07:44:05 +0000 Received: by rv-out-0708.google.com with SMTP id k29so1993892rvb.0 for ; Sat, 22 Nov 2008 23:44:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=GWd4oKUjb9xj/KmcWVsQngIQUr/tlY+r7C+pSg0fAtU=; b=d7Rek/XOztiuKGcp8i7cCfjEdHyqND2x2dqy2LAxCoqPsWT/84b6oa9hUpwZEvr/cM ho+tDprl4dMgoegxqs/SLpOW3az8wUMfpNOuU6c+sa/tvrlQlnbdSmjN7RtoLbVpSPNX dtNkdLkYffmYY4v/UrIdfrtzvD3i8BG8Yzdt4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=E1smd3E+o8yWS5/snYGfhqnkmnNnkJTX9NjFt2p//lXqlycJ5B0ljeplEsaqh+1Ux3 171VXyYRwlCMrfNlYdbLRYACsa+4OxggAZxIRNotxsNNxQGn12+b2A6DGS3nICqtiUX2 r36XiJSQEFICzwVcbpcP/xlTsJYtsNtFYJNyg= Received: by 10.141.53.4 with SMTP id f4mr1235295rvk.35.1227426291264; Sat, 22 Nov 2008 23:44:51 -0800 (PST) Received: by 10.140.157.9 with HTTP; Sat, 22 Nov 2008 23:44:51 -0800 (PST) Message-ID: Date: Sun, 23 Nov 2008 02:44:51 -0500 From: "Paul Davis" To: couchdb-dev@incubator.apache.org Subject: Closing Files MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Hey, I've been hacking on jchris's update-false branch for the past couple days and I've finally gotten everything to the point of passing all the Futon tests. But I've run into a bit of an issue. The tests all pass the first time through, but when the tests are repeated before a server restart, I start getting EMFILE errors indicating i've exhausted file handles. I cannot for the life of me piece together how file handles are cleaned up *after* the view has been completely written to the client. Hopefully I'm not just tired and missing something obvious, but can anyone give me a description of the expected open/close states for the file descriptors used for both the couch_db and the #group.fd handles? Specifically when they change and how that gets triggered. Thanks, Paul