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



133
134
135
136
137
138
139
140
141
142
# File 'lib/mongrel_proctitle.rb', line 133

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



125
126
127
128
129
# File 'lib/mongrel_proctitle.rb', line 125

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