Rainbows! Rack HTTP server user/dev discussion
 help / Atom feed
From: Eric Wong <normalperson-rMlxZR9MS24@public.gmane.org>
To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org
Subject: hijack support pushed out rainbows.git
Date: Mon, 11 Feb 2013 02:00:16 +0000
Message-ID: <20130211020016.GA19007@dcvr.yhbt.net> (raw)

>From e166cfe5e8d648b544b1291ec157bd234a425e21 Mon Sep 17 00:00:00 2001
From: Eric Wong <normalperson-rMlxZR9MS24@public.gmane.org>
Date: Fri, 8 Feb 2013 22:45:20 +0000
Subject: [PATCH] hijacking support for Rack 1.5.x users

This requires Rack 1.5.x and unicorn 4.6.0 for hijacking
support.  Older versions of Rack continue to work fine,
but we must use unicorn 4.6.0 features to support this.
---
 The patch is rather gigantic given everything we support, you can
 curl the following for the full diff:
 http://bogomips.org/rainbows.git/patch?id=e166cfe5e8d6

 lib/rainbows/coolio/client.rb                | 24 +++++++---
 lib/rainbows/coolio/thread_client.rb         |  2 +
 lib/rainbows/epoll/client.rb                 | 20 ++++++--
 lib/rainbows/ev_core.rb                      |  9 ++--
 lib/rainbows/event_machine/client.rb         | 13 +++--
 lib/rainbows/process_client.rb               | 10 ++--
 lib/rainbows/response.rb                     | 72 +++++++++++++++++++++-------
 lib/rainbows/revactor/client/methods.rb      |  2 +-
 lib/rainbows/stream_response_epoll.rb        | 49 +++++++++++++------
 lib/rainbows/stream_response_epoll/client.rb | 14 ++++--
 lib/rainbows/writer_thread_pool/client.rb    |  2 +
 rainbows.gemspec                             |  2 +-
 t/hijack.ru                                  | 56 ++++++++++++++++++++++
 t/t0800-rack-hijack.sh                       | 27 +++++++++++
 t/test_isolate.rb                            |  4 +-
 15 files changed, 246 insertions(+), 60 deletions(-)
 create mode 100644 t/hijack.ru
 create mode 100755 t/t0800-rack-hijack.sh
_______________________________________________
Rainbows! mailing list - rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org
http://rubyforge.org/mailman/listinfo/rainbows-talk
Do not quote signatures (like this one) or top post when replying


                 reply index

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publically 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-all from there: mbox

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

  List information: https://bogomips.org/rainbows/

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

  git send-email \
    --in-reply-to=20130211020016.GA19007@dcvr.yhbt.net \
    --to=normalperson-rmlxzr9ms24@public.gmane.org \
    --cc=rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org \
    /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

Rainbows! Rack HTTP server user/dev discussion

Archives are clonable:
	git clone --mirror https://bogomips.org/rainbows-public
	git clone --mirror http://ou63pmih66umazou.onion/rainbows-public

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.lang.ruby.rainbows
	nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.rainbows

 note: .onion URLs require Tor: https://www.torproject.org/
       or Tor2web: https://www.tor2web.org/

AGPL code for this site: git clone https://public-inbox.org/ public-inbox