From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.239.138.72 with SMTP id o8cs100035hbo; Thu, 20 May 2010 07:09:49 -0700 (PDT) Received-SPF: pass (google.com: domain of rack-devel+bncCP_V2_zRBRCjhdXfBBoEx_Gn5Q@googlegroups.com designates 10.141.124.13 as permitted sender) client-ip=10.141.124.13; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rack-devel+bncCP_V2_zRBRCjhdXfBBoEx_Gn5Q@googlegroups.com designates 10.141.124.13 as permitted sender) smtp.mail=rack-devel+bncCP_V2_zRBRCjhdXfBBoEx_Gn5Q@googlegroups.com; dkim=pass header.i=rack-devel+bncCP_V2_zRBRCjhdXfBBoEx_Gn5Q@googlegroups.com Received: from mr.google.com ([10.141.124.13]) by 10.141.124.13 with SMTP id b13mr95289rvn.10.1274364586847 (num_hops = 1); Thu, 20 May 2010 07:09:46 -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:received:received:mime-version :subject:from:in-reply-to:date:message-id:references:to:x-mailer :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 :content-transfer-encoding; bh=2+W3XQJaldCkXptzzBUix09CejOTr/FEF7sEsztnxUg=; b=4TU2ArRHOR1qOXvrgywVWvDyyjOC22k1qVbo9YjtUOjChr53W6wX2Bi9oDehNpZ4iv pjFzrhFl5xwdtJYNxTwdhDoAsxMom4WeXKERXGigsaki/BrKs5qAT29mOigSRD+w+iiK m4YifBCvAj/B4k/FEEsIlFiY7NqbPSCwtQBaU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:mime-version:subject:from:in-reply-to:date :message-id:references:to:x-mailer: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:content-transfer-encoding; b=Ilh59cVgullC10Y+9V5sbXFhm1WPqseI3ZUo9RaU9KWhsi6vWA2K+up/650LPt8/5X Uk3z4B/vevt1gcq8ab7EEH5xhezmujaI/jUV49NatmuRAirhWfxzs8PWbHWAl1hlAmm5 xw1VWsbxUTELSaA1ImRsIxd6LbnzjOBYGtFJY= Received: by 10.141.124.13 with SMTP id b13mr21547rvn.10.1274364579306; Thu, 20 May 2010 07:09:39 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 10.115.38.17 with SMTP id q17ls2824206waj.0.p; Thu, 20 May 2010 07:09:35 -0700 (PDT) Received: by 10.115.37.37 with SMTP id p37mr57525waj.11.1274364575780; Thu, 20 May 2010 07:09:35 -0700 (PDT) Received: by 10.115.37.37 with SMTP id p37mr57523waj.11.1274364575757; Thu, 20 May 2010 07:09:35 -0700 (PDT) Return-Path: Received: from mail-px0-f174.google.com (mail-px0-f174.google.com [209.85.212.174]) by gmr-mx.google.com with ESMTP id u10si13669908wak.2.2010.05.20.07.09.34; Thu, 20 May 2010 07:09:34 -0700 (PDT) Received-SPF: pass (google.com: domain of jftucker@gmail.com designates 209.85.212.174 as permitted sender) client-ip=209.85.212.174; Received: by pxi18 with SMTP id 18so1326107pxi.19 for ; Thu, 20 May 2010 07:09:34 -0700 (PDT) Received: by 10.115.117.40 with SMTP id u40mr85846wam.202.1274364572349; Thu, 20 May 2010 07:09:32 -0700 (PDT) Return-Path: Received: from [10.0.0.17] ([199.172.206.12]) by mx.google.com with ESMTPS id c1sm13446458wam.19.2010.05.20.07.09.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 20 May 2010 07:09:30 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1078) Subject: Re: Patch: Make CGI handler obey rack spec for the greater good From: James Tucker In-Reply-To: Date: Thu, 20 May 2010 11:09:26 -0300 Message-Id: References: To: rack-devel@googlegroups.com X-Mailer: Apple Mail (2.1078) X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jftucker@gmail.com designates 209.85.212.174 as permitted sender) smtp.mail=jftucker@gmail.com; dkim=pass (test mode) header.i=@gmail.com X-Original-Sender: jftucker@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: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable On 12 May 2010, at 10:24, Max Cantor wrote: > The default CGI handler included in rack doesn't obey the rack spec; > its input stream is not rewindable, and thus generates Errno::ESPIPE > illegal seek errors. You can see the Sinatra guys needed a workaround > for it here: = https://sinatra.lighthouseapp.com/projects/9779/tickets/227-errnoespipe-il= legal-seek-with-cgi-sinatra >=20 > This patch wraps the CGI handler's input stream in a rewindable input > object, which makes the handler adhere to the rack spec. Didn't we say this was optional in the spec? This could be a middleware, as has been discussed elsewhere on this ML = in the last 6 months. >=20 > = http://github.com/visudo/rack/commit/0ca92960d4d9e2e79d31028b3383f0bde7230= 344 >=20 > - Max Cantor > Developer, Designer & Web Specialist > (216) 539-5836 > http://inspiranity.com