diff options
Diffstat (limited to 'lib/unicorn/rainbows.rb')
-rw-r--r-- | lib/unicorn/rainbows.rb | 21 |
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'] |