mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Fixed and tested with edge rails and works such that mephisto doesn't report closed log files from daemonize. Added a little hack from Sean Treadway that increases the tcp accept queue (needs win32 testing).
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@89 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
parent
97502ebea9
commit
db1ec5f513
2 changed files with 14 additions and 0 deletions
|
@ -6,6 +6,8 @@ require 'mongrel/cgi'
|
|||
require 'mongrel/handlers'
|
||||
require 'mongrel/command'
|
||||
require 'timeout'
|
||||
require 'mongrel/tcphack'
|
||||
|
||||
|
||||
# Mongrel module containing all of the classes (include C extensions) for running
|
||||
# a Mongrel web server. It contains a minimalist HTTP server with just enough
|
||||
|
|
12
lib/mongrel/tcphack.rb
Normal file
12
lib/mongrel/tcphack.rb
Normal file
|
@ -0,0 +1,12 @@
|
|||
|
||||
# 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
|
Loading…
Reference in a new issue