RailsFCGIHandler


Files

Parent

Methods

Constants

SIGNALS

{ 'HUP' => :reload, 'INT' => :exit_now, 'TERM' => :exit_now, 'USR1' => :exit, 'USR2' => :restart

GLOBAL_SIGNALS

SIGNALS.keys - %w(USR1)

Attributes

[RW] [RW] [R]

Public Class methods

new (log_file_path = nil, gc_request_period = nil) {|self if block_given?| ...}

Initialize the FastCGI instance with the path to a crash log detailing unhandled exceptions (default RAILS_ROOT/log/fastcgi.crash.log) and the number of requests to process between garbage collection runs (default nil for normal GC behavior.) Optionally, pass a block which takes this instance as an argument for further configuration.

process! (*args, &block)

Initialize and run the FastCGI instance, passing arguments through to new.

Public Instance methods

process! (provider = FCGI)

Protected Instance methods

close_connection (cgi)

dispatcher_error (e, msg = "")

dispatcher_log (level, msg)

exit_handler (signal)

exit_now_handler (signal)

gc_countdown ()

install_signal_handler (signal, handler = nil)

install_signal_handlers ()

logger ()

mark_features! ()

Make a note of $" so we can safely reload this instance.

process_each_request (provider)

process_request (cgi)

reload! ()

reload_handler (signal)

restart! ()

restart_handler (signal)

restore! ()

run_gc! ()

with_signal_handler (signal) {|| ...}