class method self.new

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

self.new(log_file_path = nil, gc_request_period = nil)

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.

Parameters

log_file_path opt = nil
gc_request_period opt = nil
Source
# File railties/lib/fcgi_handler.rb, line 31
  def initialize(log_file_path = nil, gc_request_period = nil)
    self.log_file_path = log_file_path || "#{RAILS_ROOT}/log/fastcgi.crash.log"
    self.gc_request_period = gc_request_period

    # Yield for additional configuration.
    yield self if block_given?

    # Safely install signal handlers.
    install_signal_handlers

    @app = Dispatcher.new

    # Start error timestamp at 11 seconds ago.
    @last_error_on = Time.now - 11
  end

Defined in railties/lib/fcgi_handler.rb line 31 · View on GitHub · Improve this page · Find usages on GitHub

Defined in RailsFCGIHandler

Type at least 2 characters to search.

↑↓ navigate · open · esc close