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

CONTENT_LENGTH =
'CONTENT_LENGTH'
HTTP_CONTENT_LENGTH =

:nodoc: :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

Constants included from Utils

Utils::FileSystemWatcher, Utils::NULL

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

#split_by_null_into_hash

Methods included from DebugLogging

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

Constructor Details

#initialize(owner_pipe, options = {}) ⇒ 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