From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.103.181.8 with SMTP id i8cs372869mup; Mon, 8 Mar 2010 23:43:59 -0800 (PST) Received-SPF: pass (google.com: domain of 3PPyVSwcLCho74038KI74038KI.2ECH02A-34L4B6EE6B46HEKFI.2EC@groups.bounces.google.com designates 10.229.43.219 as permitted sender) client-ip=10.229.43.219; Authentication-Results: mr.google.com; spf=pass (google.com: domain of 3PPyVSwcLCho74038KI74038KI.2ECH02A-34L4B6EE6B46HEKFI.2EC@groups.bounces.google.com designates 10.229.43.219 as permitted sender) smtp.mail=3PPyVSwcLCho74038KI74038KI.2ECH02A-34L4B6EE6B46HEKFI.2EC@groups.bounces.google.com; dkim=pass header.i=3PPyVSwcLCho74038KI74038KI.2ECH02A-34L4B6EE6B46HEKFI.2EC@groups.bounces.google.com Received: from mr.google.com ([10.229.43.219]) by 10.229.43.219 with SMTP id x27mr2073140qce.8.1268120638312 (num_hops = 1); Mon, 08 Mar 2010 23:43:58 -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=e2enOp+CpUZkOgMmo5cmpWJ4idwt1pfjmkRgA8zXXm4=; b=bCZaI4PqeKLK/rAxiW4EPn1BVICUmzUkIB3VkO+a4+KYVv8UUpjsHXNvyb/mOhTDqU mTKrRTDiFAUYfrBK3VsWkhNqP2N99TWzJO747byHWYVXQwAh89EGYRbZ6Z4pCPW+SmX0 bsmJniq9Mgh7orxCW0J5E4qMGkagR2S6DkqBM= 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=s3lFqjnfeEfky8GDxJntlpfWfMmoBKQxZWezVp0rbV7sMumpjy09Ii7CrkkmxXinGI DgFf0KQHrWnChAanSSRKjhBn6jkLT4oL8lkOVt6uF+IRYkSyNpd4nFdDnuq5Nx3qyYqM ngmm9Z4TVuh1R/2uAPhkR2cQoC5ad7GRE2Kqo= Received: by 10.229.43.219 with SMTP id x27mr247307qce.8.1268120636643; Mon, 08 Mar 2010 23:43:56 -0800 (PST) X-BeenThere: rack-devel@googlegroups.com Received: by 10.229.111.87 with SMTP id r23ls221520qcp.2.p; Mon, 08 Mar 2010 23:43:55 -0800 (PST) Received: by 10.229.230.194 with SMTP id jn2mr591337qcb.12.1268120634847; Mon, 08 Mar 2010 23:43:54 -0800 (PST) Received: by 10.229.230.194 with SMTP id jn2mr591336qcb.12.1268120634827; Mon, 08 Mar 2010 23:43:54 -0800 (PST) Return-Path: Received: from mail-qy0-f187.google.com (mail-qy0-f187.google.com [209.85.221.187]) by gmr-mx.google.com with ESMTP id 24si625525qyk.10.2010.03.08.23.43.54; Mon, 08 Mar 2010 23:43:54 -0800 (PST) Received-SPF: pass (google.com: domain of headius@headius.com designates 209.85.221.187 as permitted sender) client-ip=209.85.221.187; Received: by mail-qy0-f187.google.com with SMTP id 17so4854315qyk.11 for ; Mon, 08 Mar 2010 23:43:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.224.20.162 with SMTP id f34mr412249qab.347.1268120634589; Mon, 08 Mar 2010 23:43:54 -0800 (PST) In-Reply-To: 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> <910BFBA2-7FD4-4985-99CC-A1764EB92179@gmail.com> From: Charles Oliver Nutter Date: Tue, 9 Mar 2010 01:43:34 -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 209.85.221.187 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/d55404ef7c99b22c Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: text/plain; charset=UTF-8 On Mon, Mar 8, 2010 at 11:24 AM, Hongli Lai wrote: > Charles Nutter: >> I don't think it should be specified behavior that a tempfile *ever* >> exists on disk. The mechanism of temporary storage for a large >> incoming post should be a black box. Consider systems that won't >> actually have a writable filesystem, like GAE; there, the "tempfile" >> data would be stored in memory or in BigTable. > > Agreed. However I think it should be *possible* to access the on-disk > file directly as an optimization for apps that need it, they just > musn't rely on it to be available. For example if your app deals with > 2 GB file uploads then you really want to avoid that extra copy when > storing the file upload in a storage location on the same filesystem, > whenever possible. Yeah, that's reasonable, so long as it's not specified that it will always be available on disk. On systems where filesystem access *is* allowed, we of course do basically the same thing as MRI+Rack. - Charlie