Class: PhusionPassenger::ClassicRails::RequestHandler

Inherits:
AbstractRequestHandler show all
Defined in:
lib/phusion_passenger/classic_rails/request_handler.rb

Overview

A request handler for Ruby on Rails applications.

Constant Summary collapse

CONTENT_LENGTH =

:nodoc:

'CONTENT_LENGTH'
HTTP_CONTENT_LENGTH =

:nodoc:

'HTTP_CONTENT_LENGTH'
NINJA_PATCHING_LOCK =

:nodoc:

Mutex.new
@@ninja_patched_action_controller =
false

Constants inherited from AbstractRequestHandler

AbstractRequestHandler::BACKLOG_SIZE, AbstractRequestHandler::DEFAULT, AbstractRequestHandler::GC_SUPPORTS_CLEAR_STATS, AbstractRequestHandler::GC_SUPPORTS_TIME, AbstractRequestHandler::HARD_TERMINATION_SIGNAL, AbstractRequestHandler::IGNORE, AbstractRequestHandler::MAX_HEADER_SIZE, AbstractRequestHandler::OBJECT_SPACE_SUPPORTS_ALLOCATED_OBJECTS, AbstractRequestHandler::OBJECT_SPACE_SUPPORTS_COUNT_OBJECTS, AbstractRequestHandler::OBJECT_SPACE_SUPPORTS_LIVE_OBJECTS, AbstractRequestHandler::PASSENGER_CONNECT_PASSWORD, AbstractRequestHandler::PING, AbstractRequestHandler::REQUEST_METHOD, AbstractRequestHandler::SOFT_TERMINATION_SIGNAL, AbstractRequestHandler::X_POWERED_BY

Instance Attribute Summary

Attributes inherited from AbstractRequestHandler

#connect_password, #iterations, #memory_limit, #processed_requests, #server_sockets, #soft_termination_linger_time

Instance Method Summary collapse

Methods inherited from AbstractRequestHandler

#cleanup, #main_loop, #main_loop_running?, #soft_shutdown, #start_main_loop_thread

Methods included from Utils

process_is_alive?

Methods included from DebugLogging

_log_device, debug, error, included, log_file=, log_level=, stderr_evaluator=, trace, warn

Constructor Details

#initialize(owner_pipe, options = {}) ⇒ RequestHandler

Returns a new instance of RequestHandler.



38
39
40
41
42
43
# File 'lib/phusion_passenger/classic_rails/request_handler.rb', line 38

def initialize(owner_pipe, options = {})
	super(owner_pipe, options)
	NINJA_PATCHING_LOCK.synchronize do
		ninja_patch_action_controller
	end
end