From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.239.138.72 with SMTP id o8cs193248hbo; Tue, 8 Jun 2010 19:00:06 -0700 (PDT) Return-Path: Received-SPF: pass (google.com: domain of rack-devel+bncCPHuoJ3hBxCk67vgBBoEkXe6-A@googlegroups.com designates 10.223.6.193 as permitted sender) client-ip=10.223.6.193; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rack-devel+bncCPHuoJ3hBxCk67vgBBoEkXe6-A@googlegroups.com designates 10.223.6.193 as permitted sender) smtp.mail=rack-devel+bncCPHuoJ3hBxCk67vgBBoEkXe6-A@googlegroups.com; dkim=pass header.i=rack-devel+bncCPHuoJ3hBxCk67vgBBoEkXe6-A@googlegroups.com Received: from mr.google.com ([10.223.6.193]) by 10.223.6.193 with SMTP id a1mr4345319faa.46.1276048806177 (num_hops = 1); Tue, 08 Jun 2010 19:00:06 -0700 (PDT) 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: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 :sender:list-subscribe:list-unsubscribe:content-type; bh=N82OHoorTYBijqs7attp5tINFXLKddoJWSkTndd92pI=; b=YVeqBrIMICmKYSdCj4wdMQMe3YR/ROMB+jypgpmv0Z9uVmJO+cf9kyckJwBHjK2Qa1 K/pvxCvRCwZXc3/X7YcMosqyV1IlKhO0L/j24uWuYepOSgXmhGnw0HirQkvWieHcftd2 DJbBIE1i8vDRhkkMPAb6374Pb0iWsAhVWfMXI= 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:sender:list-subscribe :list-unsubscribe:content-type; b=21ip2QZRB5tISRDnTIRCude0TW5W3qhAGuEzOBtTliAp2w1I/g/aCj/hVm9r+qkhKF 0lF+gjnFkQOwUpOxdgHAIY9tKK5R5537pb/+NpwGHyPUG2YKKv9EAX1VbK03fTn3aLDw e43VhUskbYYJFbB7AVpkZDMJQAy/yykx8FteY= Received: by 10.223.6.193 with SMTP id a1mr760571faa.46.1276048804944; Tue, 08 Jun 2010 19:00:04 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 10.87.70.36 with SMTP id x36ls1386703fgk.2.p; Tue, 08 Jun 2010 19:00:04 -0700 (PDT) Received: by 10.86.119.17 with SMTP id r17mr294021fgc.11.1276048804045; Tue, 08 Jun 2010 19:00:04 -0700 (PDT) Received: by 10.86.119.17 with SMTP id r17mr294020fgc.11.1276048804017; Tue, 08 Jun 2010 19:00:04 -0700 (PDT) Received: from mail-iw0-f174.google.com (mail-iw0-f174.google.com [209.85.214.174]) by gmr-mx.google.com with ESMTP id x13si4202217fah.7.2010.06.08.19.00.02; Tue, 08 Jun 2010 19:00:03 -0700 (PDT) Received-SPF: pass (google.com: domain of randy.fischer@gmail.com designates 209.85.214.174 as permitted sender) client-ip=209.85.214.174; Received: by mail-iw0-f174.google.com with SMTP id 37so5452939iwn.5 for ; Tue, 08 Jun 2010 19:00:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.124.5 with SMTP id s5mr7069315ibr.195.1276048802223; Tue, 08 Jun 2010 19:00:02 -0700 (PDT) Received: by 10.231.10.200 with HTTP; Tue, 8 Jun 2010 19:00:02 -0700 (PDT) In-Reply-To: <4d3cbefd-6f50-4772-959d-29fa4995afc0@t14g2000prm.googlegroups.com> References: <9a470ba7-a17f-4264-94c6-2cf26bc22843@y18g2000prn.googlegroups.com> <4d3cbefd-6f50-4772-959d-29fa4995afc0@t14g2000prm.googlegroups.com> Date: Tue, 8 Jun 2010 22:00:02 -0400 Message-ID: Subject: Re: Setting tmp dir 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.214.174 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: Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: multipart/alternative; boundary=0016e6464ef49297cf04888f43b0 --0016e6464ef49297cf04888f43b0 Content-Type: text/plain; charset=ISO-8859-1 Just as an amusing aside - I had to set up a temp variable for mongrel once (/var/tmp & /tmp weren't large enough), so I was prepared for this particular Rack issue. Every package seems to want to specify this a different way. Currently, using sinatra/passenger from apache, I have one virtual host defined with the following: SetEnv TMPDIR /some/big/place PassengerUploadBufferDir /some/other/big/place TMPDIR points rack to a place where it can (sigh) make its rewindable input. (I regularly have multi-GB file uploads, destined for different filesystem partitions) PassengerUploadBufferDir points to a place where, somewhat at phusion's whim, it will use for storing post data. But it has to be writable by the apache worker process, so I just give up and chmod it 1777). Too Many Buffers! > >http://github.com/rack/rack/blob/master/lib/rack/utils.rb#L450 > > > and I think we could add a class instance variable with accessors to > > > adjust it, defaulting to Dir.tmpdir. > > > If you want to, you can submit a patch for that, or overwrite > > > Dir.tmpdir after requiring tmpdir. > > > > > -- > > > Michael Fellinger > > > CTO, The Rubyists, LLC > --0016e6464ef49297cf04888f43b0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Just as an amusing aside - I had to set up a temp variable for mongrel
o= nce (/var/tmp=A0 & /tmp weren't large enough), so I was prepared fo= r
this particular Rack issue.

Every package seems to want to spec= ify this a different way.=A0 Currently,
using sinatra/passenger from apache, I have one virtual host defined
wi= th the following:

=A0=A0 SetEnv TMPDIR=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 /some/big/place
=A0=A0 PassengerUploadBuf= ferDir=A0=A0=A0=A0 /some/other/big/place

TMPDIR points rack to a pla= ce where it can (sigh) make its
rewindable input.=A0 (I regularly have multi-GB file uploads,
destined f= or different filesystem partitions)

PassengerUploadBufferDir points = to a place where, somewhat
at phusion's whim, it will use for storin= g post data.=A0 But it has
to be writable by the apache worker process, so I just give
up and chmod= it 1777).

Too Many Buffers!

> >http://github.com/rack/rack/blob/master/lib/rack= /utils.rb#L450
> > and I think we could add a class instance variable with accessors= to
> > adjust it, defaulting to Dir.tmpdir.
> > If you want to, you can submit a patch for that, or overwrite
> > Dir.tmpdir after requiring tmpdir.
>
> > --
> > Michael Fellinger
> > CTO, The Rubyists, LLC

--0016e6464ef49297cf04888f43b0--