Class: Mongrel::HttpServer
- Inherits:
-
Object
- Object
- Mongrel::HttpServer
- Defined in:
- lib/mongrel_proctitle.rb
Instance Method Summary collapse
- #process_client_with_proctitle(client) ⇒ Object (also: #process_client)
- #run_with_proctitle(*args) ⇒ Object (also: #run)
Instance Method Details
#process_client_with_proctitle(client) ⇒ Object Also known as: process_client
142 143 144 145 146 147 148 149 150 151 |
# File 'lib/mongrel_proctitle.rb', line 142 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
133 134 135 136 137 138 |
# File 'lib/mongrel_proctitle.rb', line 133 def run_with_proctitle(*args) @titler = Proctitler.new(self.port, File.basename($0)) @titler.set_idle trap("CONT") {@titler.reset} run_without_proctitle end |