From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.103.181.8 with SMTP id i8cs333719mup; Mon, 8 Mar 2010 06:33:07 -0800 (PST) Received-SPF: pass (google.com: domain of 3oQqVSw0JCow7q3tE.vy8sxu7w2qy1.s427qs0-tuBu1w44w1uw74A58.s42@groups.bounces.google.com designates 10.220.47.148 as permitted sender) client-ip=10.220.47.148; Authentication-Results: mr.google.com; spf=pass (google.com: domain of 3oQqVSw0JCow7q3tE.vy8sxu7w2qy1.s427qs0-tuBu1w44w1uw74A58.s42@groups.bounces.google.com designates 10.220.47.148 as permitted sender) smtp.mail=3oQqVSw0JCow7q3tE.vy8sxu7w2qy1.s427qs0-tuBu1w44w1uw74A58.s42@groups.bounces.google.com; dkim=pass header.i=3oQqVSw0JCow7q3tE.vy8sxu7w2qy1.s427qs0-tuBu1w44w1uw74A58.s42@groups.bounces.google.com Received: from mr.google.com ([10.220.47.148]) by 10.220.47.148 with SMTP id n20mr917639vcf.55.1268058786354 (num_hops = 1); Mon, 08 Mar 2010 06:33:06 -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:date:message-id:subject:from: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=0Q0ClQEN40strJhilddOU3pADLteoFoeKyM8AHhJtZo=; b=h3Y7IbPNNzKIqU2aofAXO2sPxxvPndRA5yw05jP2UJqo2w7t7EXMVnsUzqEsn6A3V1 9FBQyeMsi3BicPocISkUzHCPZOeKgAbUE84hD67FOxWVZos8eqMromEwENUV+CS7OHHk 1tjxe2bnXy7WvLyM+GKGvVw4bVsTPXQjt/VLo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:mime-version:in-reply-to:references:date :message-id:subject:from: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=y+LaT5icttLYPt5i2huj+S6XsxBwb8YUh05yCdq3BuP9OsIXi4e7TPDKw1t7sIDnUW eNqdPGowgW/stXSmEuzGUUKsuxmlnCvptmXifHjM+fQrlQUtyVQS3g/XS6i3CUbC1gDB aWvFvOH+PTxw/hSI1bIQQGeuzW0mlfFxb+Jfw= Received: by 10.220.47.148 with SMTP id n20mr97471vcf.55.1268058785117; Mon, 08 Mar 2010 06:33:05 -0800 (PST) X-BeenThere: rack-devel@googlegroups.com Received: by 10.220.87.130 with SMTP id w2ls1390325vcl.4.p; Mon, 08 Mar 2010 06:33:04 -0800 (PST) Received: by 10.220.4.37 with SMTP id 37mr728549vcp.16.1268058784003; Mon, 08 Mar 2010 06:33:04 -0800 (PST) Received: by 10.220.4.37 with SMTP id 37mr728548vcp.16.1268058783975; Mon, 08 Mar 2010 06:33:03 -0800 (PST) Return-Path: Received: from mail-qy0-f190.google.com (mail-qy0-f190.google.com [209.85.221.190]) by gmr-mx.google.com with ESMTP id 31si4985399vws.0.2010.03.08.06.33.02; Mon, 08 Mar 2010 06:33:02 -0800 (PST) Received-SPF: pass (google.com: domain of randy.fischer@gmail.com designates 209.85.221.190 as permitted sender) client-ip=209.85.221.190; Received: by qyk28 with SMTP id 28so5543974qyk.14 for ; Mon, 08 Mar 2010 06:33:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.224.38.213 with SMTP id c21mr2532672qae.309.1268058782636; Mon, 08 Mar 2010 06:33:02 -0800 (PST) In-Reply-To: <80d93359-c1c2-4589-9db9-4ff53cf4f95b@b7g2000yqd.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> <80d93359-c1c2-4589-9db9-4ff53cf4f95b@b7g2000yqd.googlegroups.com> Date: Mon, 8 Mar 2010 09:33:02 -0500 Message-ID: Subject: Re: Not cleaning up tempfiles for multipart? From: Randy Fischer To: rack-devel@googlegroups.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of randy.fischer@gmail.com designates 209.85.221.190 as permitted sender) smtp.mail=randy.fischer@gmail.com; dkim=pass (test mode) header.i=@gmail.com X-Original-Sender: randy.fischer@gmail.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/705bf3281c8a77b3 Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: text/plain; charset=ISO-8859-1 On Mon, Mar 8, 2010 at 6:30 AM, Hongli Lai wrote: > Another thing that you might want to keep in mind is that users might > File.rename() a certain Tempfile, in which case you will not want to > unlink it. For example suppose one uploads a large file to the web > server, I think there are web apps out there that will simply rename() > the tempfile to the storage directory and therefore avoid an expensive > copy operation. Small nit here: if tempfile's close is unlinking the file, it doesn't matter if something else has linked to it. It's the filesystem's responsibility, after all, to garbage collect unlinked files. -Randy Fischer