Class: Mongrel::HttpServer

Inherits:
Object
  • Object
show all
Defined in:
lib/mongrel_proctitle.rb

Instance Method Summary collapse

Instance Method Details

#process_client_with_proctitle(client) ⇒ Object Also known as: process_client



166
167
168
169
170
171
172
173
174
175
# File 'lib/mongrel_proctitle.rb', line 166

def process_client_with_proctitle(client)
  unless @handler
    @handler = ProctitleHandler.new(@titler)
    register("/", @handler, true)
  end
  @titler.request do
    @titler.set_processing(client)
    return process_client_without_proctitle(client)
  end
end

#run_with_proctitle(*args) ⇒ Object Also known as: run



158
159
160
161
162
# File 'lib/mongrel_proctitle.rb', line 158

def run_with_proctitle(*args)
  @titler = Proctitler.new(self.port, File.basename($0))
  @titler.set_idle
  run_without_proctitle
end