hijack support pushed out rainbows.git
Eric Wong
normalperson at yhbt.net
Mon Feb 11 02:00:16 UTC 2013
>From e166cfe5e8d648b544b1291ec157bd234a425e21 Mon Sep 17 00:00:00 2001
From: Eric Wong <normalperson at yhbt.net>
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
More information about the rainbows-talk
mailing list