Class: TCPServer

Inherits:
Object
  • Object
show all
Defined in:
lib/mongrel/tcphack.rb

Overview

A modification proposed by Sean Treadway that increases the default accept queue of TCPServer to 1024 so that it handles more concurrent requests.

Instance Method Summary collapse

Instance Method Details

#initialize_with_backlog(*args) ⇒ Object Also known as: initialize


11
12
13
14
# File 'lib/mongrel/tcphack.rb', line 11

def initialize_with_backlog(*args)
  initialize_without_backlog(*args)
  listen(1024)
end