about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-09-08 00:40:54 -0700
committerEric Wong <normalperson@yhbt.net>2009-09-08 00:40:54 -0700
commit7832b0eb5e5274cef4ffec8ec351f53d67b026b7 (patch)
treeb3b1799ffd455cb6bcf7b61a38845bb8246dc0ab
parent14d429e43e2aedb2615dcc3b7b013633f9a3b760 (diff)
downloadunicorn-7832b0eb5e5274cef4ffec8ec351f53d67b026b7.tar.gz
rev 0.3.0 is out now so we don't need to monkey patch
Rev anymore.
-rw-r--r--lib/unicorn/rainbows.rb21
1 files changed, 0 insertions, 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']