From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: * X-Spam-ASN: AS33070 50.56.128.0/17 X-Spam-Status: No, score=1.0 required=3.0 tests=AWL,HK_RANDOM_FROM, MSGID_FROM_MTA_HEADER,TVD_RCVD_IP shortcircuit=no autolearn=no version=3.3.2 Path: news.gmane.org!not-for-mail From: Eric Wong Newsgroups: gmane.comp.lang.ruby.rainbows.general Subject: hijack support pushed out rainbows.git Date: Mon, 11 Feb 2013 02:00:16 +0000 Message-ID: <20130211020016.GA19007@dcvr.yhbt.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1360548499 4521 80.91.229.3 (11 Feb 2013 02:08:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Feb 2013 02:08:19 +0000 (UTC) To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Original-X-From: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Mon Feb 11 03:08:40 2013 Return-path: Envelope-to: gclrrg-rainbows-talk@m.gmane.org X-Original-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Delivered-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-BeenThere: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Errors-To: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Xref: news.gmane.org gmane.comp.lang.ruby.rainbows.general:445 Archived-At: Received: from 50-56-192-79.static.cloud-ips.com ([50.56.192.79] helo=rubyforge.org) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U4ios-0008Lb-6a for gclrrg-rainbows-talk@m.gmane.org; Mon, 11 Feb 2013 03:08:34 +0100 Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 446C22E069; Mon, 11 Feb 2013 02:08:13 +0000 (UTC) Received: from dcvr.yhbt.net (dcvr.yhbt.net [64.71.152.64]) by rubyforge.org (Postfix) with ESMTP id 463AE2E069 for ; Mon, 11 Feb 2013 02:00:17 +0000 (UTC) Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 585101F6BD; Mon, 11 Feb 2013 02:00:16 +0000 (UTC) >>From e166cfe5e8d648b544b1291ec157bd234a425e21 Mon Sep 17 00:00:00 2001 From: Eric Wong 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