mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
ddd5c9a46c
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@267 19e92222-5c0b-0410-8929-a290d50e31e9
18 lines
616 B
Ruby
18 lines
616 B
Ruby
# Copyright (c) 2005 Zed A. Shaw
|
|
# You can redistribute it and/or modify it under the same terms as Ruby.
|
|
#
|
|
# Additional work donated by contributors. See http://mongrel.rubyforge.org/attributions.html
|
|
# for more information.
|
|
|
|
|
|
# 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
|