Sha256: cc5bf6ed38b22c4d5b3c9a19ceea9521f7a495266bb27da60b6ced7466e7c59b

Contents?: true

Size: 386 Bytes

Versions: 8

Compression:

Stored size: 386 Bytes

Contents

# 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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mongrel-0.3.10.1 lib/mongrel/tcphack.rb
mongrel-0.3.12.3 lib/mongrel/tcphack.rb
mongrel-0.3.12.1 lib/mongrel/tcphack.rb
mongrel-0.3.10 lib/mongrel/tcphack.rb
mongrel-0.3.12.2 lib/mongrel/tcphack.rb
mongrel-0.3.11 lib/mongrel/tcphack.rb
mongrel-0.3.12.4 lib/mongrel/tcphack.rb
mongrel-0.3.12 lib/mongrel/tcphack.rb