test/support/nginx_controller.rb in passenger-3.9.2.beta vs test/support/nginx_controller.rb in passenger-4.0.0.rc4
- old
+ new
@@ -25,17 +25,18 @@
@pid_file = "#{root_dir}/nginx.pid"
@log_file = "#{root_dir}/error.log"
@controller = DaemonController.new(
:identifier => 'Nginx',
:start_command => "#{CONFIG['nginx']} -c '#{@config_file}'",
- :ping_command => lambda { TCPSocket.new('localhost', PORT) },
+ :ping_command => [:tcp, '127.0.0.1', PORT],
:pid_file => @pid_file,
:log_file => @log_file,
:timeout => 25,
:before_start => method(:write_nginx_config_files)
)
@servers = []
+ @max_pool_size = 1
end
def set(options)
options.each_pair do |key, value|
instance_variable_set("@#{key}", value)