This method is deprecated or moved on the latest stable version.
The last existing version (v2.3.8) is shown here.
new(log_file_path = nil, gc_request_period = nil)
public
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.
# 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