Rainbows! Rack HTTP server user/dev discussion
 help / Atom feed
* hijack support pushed out rainbows.git
@ 2013-02-11  2:00 Eric Wong
  0 siblings, 0 replies; 1+ messages in thread
From: Eric Wong @ 2013-02-11  2:00 UTC (permalink / raw)
  To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw

>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


^ permalink raw reply	[flat|threaded] 1+ messages in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-11  2:00 hijack support pushed out rainbows.git Eric Wong

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