From 7832b0eb5e5274cef4ffec8ec351f53d67b026b7 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 8 Sep 2009 00:40:54 -0700 Subject: rainbows: remove Rev monkey patch rev 0.3.0 is out now so we don't need to monkey patch Rev anymore. --- lib/unicorn/rainbows.rb | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/lib/unicorn/rainbows.rb b/lib/unicorn/rainbows.rb index f5f6a17..e9d914a 100644 --- a/lib/unicorn/rainbows.rb +++ b/lib/unicorn/rainbows.rb @@ -112,27 +112,6 @@ module Unicorn end end -# Allow Rev::TCPListener to use an existing TCPServer -# patch already submitted: -# http://rubyforge.org/pipermail/rev-talk/2009-August/000097.html -class Rev::TCPListener - alias_method :orig_initialize, :initialize - - def initialize(addr, port = nil, options = {}) - BasicSocket.do_not_reverse_lookup = true unless options[:reverse_lookup] - options[:backlog] ||= DEFAULT_BACKLOG - - listen_socket = if ::TCPServer === addr - addr - else - raise ArgumentError, "port must be an integer" if nil == port - ::TCPServer.new(addr, port) - end - listen_socket.instance_eval { listen(options[:backlog]) } - super(listen_socket) - end -end - if $0 == __FILE__ app = lambda { |env| if /\A100-continue\z/i =~ env['HTTP_EXPECT'] -- cgit v1.2.3-24-ge0c7