rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / Atom feed
From: Eric Wong <normalperson@yhbt.net>
To: rack-devel@googlegroups.com
Subject: Re: [SEC][ANN] Rack 1.5.0, a modular Ruby webserver interface
Date: Wed, 23 Jan 2013 00:27:43 +0000	[thread overview]
Message-ID: <20130123002743.GA8819@dcvr.yhbt.net> (raw)
In-Reply-To: <20130122100802.GA28585@dcvr.yhbt.net>

(culling Cc:)

Eric Wong <normalperson@yhbt.net> wrote:
> jftucker@gmail.com wrote:
> > Additonally, SPEC has been updated in several areas and is now at 1,2.
> 
> SPEC still says this:
> 
>   <tt>rack.version</tt>:: The Array [1,1], representing this version of Rack.
> 
> I take it 1,2-compliant servers should set [1,2] there instead?
> 
> > A new SPEC section was introduced that provides two server-optional IO hijacking
> > APIs. Further information on these APIs will be made available by the community
> > in good time. In the mean time, some information can be found in the original
> > pull request: https://github.com/rack/rack/pull/481

So once a connection is hijacked, there's no un-hijacking, correct?
The server needs to completely ignore the normal Rack response
(I also just posted a Rack::Lint patch here to that effect)

> Cool.  Should be easy for unicorn, and some configurations of
> Rainbows!/zbatery.

I'm setting env["rack.version"] to [1,2] in my unicorn hijack branch.
Would greatly appreciate ACK/NACK on whether this is the way to go.

Original patch to implement hijack:
http://mid.gmane.org/20130122114943.GA8455@dcvr.yhbt.net

Followup to ignore responses for hijacked requests:
http://mid.gmane.org/20130122235728.GA8717@dcvr.yhbt.net

  reply	other threads:[~2013-01-23  0:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-22  7:46 [SEC][ANN] Rack 1.5.0, a modular Ruby webserver interface jftucker
2013-01-22  7:46 ` raggi
2013-01-22 10:08 ` Eric Wong
2013-01-23  0:27   ` Eric Wong [this message]
2013-01-23 22:40     ` Hongli Lai
2013-01-26 19:11     ` James Tucker
2013-01-22 18:14 ` Hongli Lai

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=20130123002743.GA8819@dcvr.yhbt.net \
    --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).