OSDN Git Service

ActiveLdap 1.2.4
[redminele/redminele.git] / ruby / lib / ruby / gems / 1.8 / gems / mongrel-1.1.5-x86-mswin32-60 / lib / mongrel / tcphack.rb
1 # Copyright (c) 2005 Zed A. Shaw 
2 # You can redistribute it and/or modify it under the same terms as Ruby.
3 #
4 # Additional work donated by contributors.  See http://mongrel.rubyforge.org/attributions.html 
5 # for more information.
6
7
8 # A modification proposed by Sean Treadway that increases the default accept
9 # queue of TCPServer to 1024 so that it handles more concurrent requests.
10 class TCPServer
11    def initialize_with_backlog(*args)
12      initialize_without_backlog(*args)
13      listen(1024)
14    end
15
16    alias_method :initialize_without_backlog, :initialize
17    alias_method :initialize, :initialize_with_backlog
18 end