class Puma::Runner
def start_control
def start_control str = @options[:control_url] return unless str require_relative 'app/status' if token = @options[:control_auth_token] token = nil if token.empty? || token == 'none' end app = Puma::App::Status.new @launcher, token # A Reactor is not created aand nio4r is not loaded when 'queue_requests: false' # Use `nil` for events, no hooks in control server control = Puma::Server.new app, nil, { min_threads: 0, max_threads: 1, queue_requests: false, log_writer: @log_writer } control.binder.parse [str], nil, 'Starting control server' control.run thread_name: 'ctl' @control = control end