From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.103.181.8 with SMTP id i8cs330305mup; Mon, 8 Mar 2010 05:23:21 -0800 (PST) Received-SPF: pass (google.com: domain of 3R_qUSwcLCiIFC8BGSQFC8BGSQ.AMKP8AI-BCTCJEMMEJCEPMSNQ.AMK@groups.bounces.google.com designates 10.224.2.27 as permitted sender) client-ip=10.224.2.27; Authentication-Results: mr.google.com; spf=pass (google.com: domain of 3R_qUSwcLCiIFC8BGSQFC8BGSQ.AMKP8AI-BCTCJEMMEJCEPMSNQ.AMK@groups.bounces.google.com designates 10.224.2.27 as permitted sender) smtp.mail=3R_qUSwcLCiIFC8BGSQFC8BGSQ.AMKP8AI-BCTCJEMMEJCEPMSNQ.AMK@groups.bounces.google.com; dkim=pass header.i=3R_qUSwcLCiIFC8BGSQFC8BGSQ.AMKP8AI-BCTCJEMMEJCEPMSNQ.AMK@groups.bounces.google.com Received: from mr.google.com ([10.224.2.27]) by 10.224.2.27 with SMTP id 27mr1818349qah.45.1268054600540 (num_hops = 1); Mon, 08 Mar 2010 05:23:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:x-beenthere:received:received:received :received:received-spf:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to :x-original-authentication-results:x-original-sender:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :x-thread-url:x-message-url:sender:list-subscribe:list-unsubscribe :content-type; bh=ihptbPvJN7jrnCWJSEklnmJLqdw1Wof4Nv4QzAAee88=; b=MJxXMC7BMqRnjXw//kvzo50vT1lJKKMOdG7qLe90y0jhM6h8dQeVRmkc4nnmuNjE4A 399dyd1nZpuY3tnNJ66rQmlHoTo1dejQw86TlP5z71Qsq3+hI4Yo3dw7p/gkj27AFjcf HsvnP+O+XIN5laD+toVQYxCZJ7Wla/S9RNxf0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:mime-version:in-reply-to:references:from :date:message-id:subject:to:x-original-authentication-results :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:x-thread-url:x-message-url:sender :list-subscribe:list-unsubscribe:content-type; b=gyGKP49dH7Q6u4csEGPaFBahX/G8vkHQYCaPSoMRq8lPBgCCOJf4g2JRU2Qb7tHTKE Bj3KA3DVBRnkKlR2kBWv50akw79bHOT6ohQikUEC2dxwWQviVcMANzC0llCY+5WlXd2Q fAtsDsL7a5bBq10bdHXNy29GHiLcpBZs4JXxI= Received: by 10.224.2.27 with SMTP id 27mr190485qah.45.1268054599281; Mon, 08 Mar 2010 05:23:19 -0800 (PST) X-BeenThere: rack-devel@googlegroups.com Received: by 10.224.88.1 with SMTP id y1ls3071690qal.3.p; Mon, 08 Mar 2010 05:23:17 -0800 (PST) Received: by 10.224.104.195 with SMTP id q3mr613323qao.22.1268054597639; Mon, 08 Mar 2010 05:23:17 -0800 (PST) Received: by 10.224.104.195 with SMTP id q3mr613322qao.22.1268054597613; Mon, 08 Mar 2010 05:23:17 -0800 (PST) Return-Path: Received: from qw-out-1920.google.com (qw-out-1920.google.com [74.125.92.146]) by gmr-mx.google.com with ESMTP id 25si515716qyk.15.2010.03.08.05.23.17; Mon, 08 Mar 2010 05:23:17 -0800 (PST) Received-SPF: pass (google.com: domain of headius@headius.com designates 74.125.92.146 as permitted sender) client-ip=74.125.92.146; Received: by qw-out-1920.google.com with SMTP id 5so1843297qwc.24 for ; Mon, 08 Mar 2010 05:23:17 -0800 (PST) MIME-Version: 1.0 Received: by 10.224.86.141 with SMTP id s13mr2457813qal.130.1268054597214; Mon, 08 Mar 2010 05:23:17 -0800 (PST) In-Reply-To: <927006e5-332c-4e59-aca6-4963bdcbea2a@q16g2000yqq.googlegroups.com> References: <20100306075548.GB6474@dcvr.yhbt.net> <44f3f951-889e-45ec-ae46-40a371329a9e@e1g2000yqh.googlegroups.com> <20100307235337.GA15381@dcvr.yhbt.net> <927006e5-332c-4e59-aca6-4963bdcbea2a@q16g2000yqq.googlegroups.com> From: Charles Oliver Nutter Date: Mon, 8 Mar 2010 07:22:57 -0600 Message-ID: Subject: Re: Not cleaning up tempfiles for multipart? To: rack-devel@googlegroups.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of headius@headius.com designates 74.125.92.146 as permitted sender) smtp.mail=headius@headius.com X-Original-Sender: headius@headius.com Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: X-Thread-Url: http://groups.google.com/group/rack-devel/t/6eb2bc7a1f8c072c X-Message-Url: http://groups.google.com/group/rack-devel/msg/dc3406a89872b91f Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: text/plain; charset=UTF-8 On Mon, Mar 8, 2010 at 5:26 AM, Hongli Lai wrote: > I disagree. Software is made to be used by users, whose skills might > vary significantly. Skilled sysadmins know how to use lsof and know > how to take care of problems, but not everybody is or can be a skilled > sysadmin. Server resources also vary greatly, and some people don't > and/or cannot have have a lot of disk space. I think software should > do the right thing even in the face of people who don't know how to > use lsof. And this may be the best reason for cleaning up non-memory resources explicitly (like files and file descriptors) rather than expecting GC to do it for you: that's how the rest of the world does it. It's unexpected (and usually frowned upon) for a program to leave dangling non-memory resources all over the place, even if they'll eventually (hopefully? maybe?) get cleaned up when GC fires (if it does before something else happens, like a hard exit). I sympathize with the desire to be "lazy" and let GC do it all, but that's simply not how it's done. Non-memory resources should always be explicitly cleaned up. - Charlie