From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.239.138.72 with SMTP id o8cs26699hbo; Wed, 9 Jun 2010 09:43:11 -0700 (PDT) Return-Path: Received-SPF: pass (google.com: domain of rack-devel+bncCPWQzrD5BxCdib_gBBoE_nwG_w@googlegroups.com designates 10.150.172.42 as permitted sender) client-ip=10.150.172.42; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rack-devel+bncCPWQzrD5BxCdib_gBBoE_nwG_w@googlegroups.com designates 10.150.172.42 as permitted sender) smtp.mail=rack-devel+bncCPWQzrD5BxCdib_gBBoE_nwG_w@googlegroups.com; dkim=pass header.i=rack-devel+bncCPWQzrD5BxCdib_gBBoE_nwG_w@googlegroups.com Received: from mr.google.com ([10.150.172.42]) by 10.150.172.42 with SMTP id u42mr203933ybe.50.1276101790326 (num_hops = 1); Wed, 09 Jun 2010 09:43:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:x-beenthere:received:mime-version :received:received:date:in-reply-to:x-ip:references:user-agent :x-http-useragent:message-id:subject:from:to:reply-to:precedence :mailing-list:list-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type :content-transfer-encoding; bh=KIxFfV/OpgUgqePrBwb1myUsiy4yy0OcON1dXfwQj+g=; b=AGDlC0xoEG7MiJ0a5yLF9QPU1D+medU8myl8D5mKal1SAXKT5zsAo+fH3teDlZmbuU 3BjKv2NgezP3p0pu9j5Yub45Epy0aTHUAgjTqOB73DJlsyYYTChrasSN6ZyY0IazBnQK FIoVQMQcTtvzS1NaDum/uPuyPUb7lpmG1VqQM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:mime-version:date:in-reply-to:x-ip:references :user-agent:x-http-useragent:message-id:subject:from:to:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :sender:list-subscribe:list-unsubscribe:content-type :content-transfer-encoding; b=khNa11DT0myKHkDB2VIZQhpMuPuZgOzLPaD6gAMmGBDPV3Oo+l1wujVv+m0T68UUv5 43CsNZZ5En+KpX8XVWLwYvTZtfwDsypye9H5/admZo27kZXBX6ZdftqbzY7Bddn5/RuW AcySGwf1R1LZTWuolyRpPwY8diuGTpfjck758= Received: by 10.150.172.42 with SMTP id u42mr35102ybe.50.1276101789087; Wed, 09 Jun 2010 09:43:09 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 10.151.17.15 with SMTP id u15ls4250129ybi.0.p; Wed, 09 Jun 2010 09:43:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.151.62.38 with SMTP id p38mr30167ybk.64.1276101788328; Wed, 09 Jun 2010 09:43:08 -0700 (PDT) Received: by t14g2000prm.googlegroups.com with HTTP; Wed, 9 Jun 2010 09:43:08 -0700 (PDT) Date: Wed, 9 Jun 2010 09:43:08 -0700 (PDT) In-Reply-To: X-IP: 206.169.124.88 References: <9a470ba7-a17f-4264-94c6-2cf26bc22843@y18g2000prn.googlegroups.com> <4d3cbefd-6f50-4772-959d-29fa4995afc0@t14g2000prm.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-US) AppleWebKit/534.1 (KHTML, like Gecko) Chrome/6.0.422.0 Safari/534.1,gzip(gfe) Message-ID: Subject: Re: Setting tmp dir From: Chris Cherry To: Rack Development 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: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Wow, that's a bit ridiculous. We shall call this Tmphell! On Jun 8, 7:00=A0pm, Randy Fischer wrote: > Just as an amusing aside - I had to set up a temp variable for mongrel > once (/var/tmp =A0& /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. =A0Currently= , > using sinatra/passenger from apache, I have one virtual host defined > with the following: > > =A0 =A0SetEnv TMPDIR =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 /some/big/pl= ace > =A0 =A0PassengerUploadBufferDir =A0 =A0 /some/other/big/place > > TMPDIR points rack to a place where it can (sigh) make its > rewindable input. =A0(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. =A0But 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 t= o > > > > 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