Module: Rainbows::WriterThreadSpawn

Includes:
Base
Defined in:
lib/rainbows/writer_thread_spawn.rb

Overview

vulnerable to slow client denial-of-service attacks.

Instance Method Summary collapse

Methods included from Base

included, #init_worker_process, #reopen_worker_logs, #sig_receiver

Instance Method Details

#process_client(client) ⇒ Object

:nodoc:



25
26
27
# File 'lib/rainbows/writer_thread_spawn.rb', line 25

def process_client(client) # :nodoc:
  Client.new(client).process_loop
end

#worker_loop(worker) ⇒ Object

:nodoc:



29
30
31
32
33
# File 'lib/rainbows/writer_thread_spawn.rb', line 29

def worker_loop(worker)  # :nodoc:
  Client.const_set(:MAX, worker_connections)
  super # accept loop from Unicorn
  Client.quit
end