1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
puma--puma/lib/mongrel/tcphack.rb

12 lines
386 B
Ruby

# A modification proposed by Sean Treadway that increases the default accept
# queue of TCPServer to 1024 so that it handles more concurrent requests.
class TCPServer
def initialize_with_backlog(*args)
initialize_without_backlog(*args)
listen(1024)
end
alias_method :initialize_without_backlog, :initialize
alias_method :initialize, :initialize_with_backlog
end