rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / Atom feed
From: James Tucker <jftucker@gmail.com>
To: rack-devel@googlegroups.com
Subject: Re: Patch: Make CGI handler obey rack spec for the greater good
Date: Thu, 20 May 2010 11:09:26 -0300	[thread overview]
Message-ID: <A44A2A29-0C84-4D4E-8667-527D4810A656@gmail.com> (raw)
In-Reply-To: <AANLkTikwzV_-PlauyfVRK7uZ715VbkOtF5PzmR6_SE8b@mail.gmail.com>


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-illegal-seek-with-cgi-sinatra
> 
> 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.

> 
> http://github.com/visudo/rack/commit/0ca92960d4d9e2e79d31028b3383f0bde7230344
> 
> - Max Cantor
> Developer, Designer & Web Specialist
> (216) 539-5836
> http://inspiranity.com

  reply	other threads:[~2010-05-20 14:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-12 13:24 Patch: Make CGI handler obey rack spec for the greater good Max Cantor
2010-05-20 14:09 ` James Tucker [this message]
2010-05-20 17:36   ` Max Cantor
2010-05-20 21:10     ` James Tucker
2010-06-12 18:46       ` Max Cantor
2010-06-13 21:11         ` James Tucker
2010-06-29 10:27   ` Hongli Lai
2010-06-29 10:44     ` James Tucker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://groups.google.com/group/rack-devel

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A44A2A29-0C84-4D4E-8667-527D4810A656@gmail.com \
    --to=rack-devel@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).