Class: PhusionPassenger::Railz::RequestHandler

Inherits:
AbstractRequestHandler show all
Defined in:
lib/phusion_passenger/railz/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::HARD_TERMINATION_SIGNAL, AbstractRequestHandler::IGNORE, AbstractRequestHandler::MAX_HEADER_SIZE, AbstractRequestHandler::NULL, AbstractRequestHandler::PASSENGER_HEADER, AbstractRequestHandler::PING, AbstractRequestHandler::REQUEST_METHOD, AbstractRequestHandler::SOFT_TERMINATION_SIGNAL, AbstractRequestHandler::X_POWERED_BY

Instance Attribute Summary

Attributes inherited from AbstractRequestHandler

#iterations, #memory_limit, #processed_requests, #socket_name, #socket_type

Instance Method Summary collapse

Methods inherited from AbstractRequestHandler

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

Constructor Details

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

Returns a new instance of RequestHandler.



38
39
40
41
42
43
# File 'lib/phusion_passenger/railz/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