lib/phusion_passenger/abstract_request_handler.rb
def parse_native_request(socket, channel, buffer)
		headers_data = channel.read_scalar(buffer, MAX_HEADER_SIZE)
		if headers_data.nil?
			return
		end
		headers = split_by_null_into_hash(headers_data)
		if @connect_password && headers[PASSENGER_CONNECT_PASSWORD] != @connect_password
			warn "*** Passenger RequestHandler warning: " <<
				"someone tried to connect with an invalid connect password."
			return
		else
			return [headers, socket]
		end
	rescue SecurityError => e
		warn("*** Passenger RequestHandler warning: " <<
			"HTTP header size exceeded maximum.")
		return nil
	end
# Read the next request from the given socket, and return
# a pair [headers, input_stream]. _headers_ is a Hash containing
# the request headers, while _input_stream_ is an IO object for
# reading HTTP POST data.
#
# Returns nil if end-of-stream was encountered.
Read the next request from the given socket, and return
a pair [headers, input_stream]. _headers_ is a Hash containing
the request headers, while _input_stream_ is an IO object for
reading HTTP POST data.

Returns nil if end-of-stream was encountered.
Read the next request from the given socket and return a pair [ headers input_stream ] . _headers_ is a Hash containing the request headers while _input_stream_ is an IO object for reading HTTP POST data . Returns nil if end - of - stream was encountered .
def parse_native_request(socket, channel, buffer)
		headers_data = channel.read_scalar(buffer, MAX_HEADER_SIZE)
		if headers_data.nil?
			return
		end
		headers = split_by_null_into_hash(headers_data)
		if @connect_password && headers[PASSENGER_CONNECT_PASSWORD] != @connect_password
			warn "*** Passenger RequestHandler warning: " <<
				"someone tried to connect with an invalid connect password."
			return
		else
			return [headers, socket]
		end
	rescue SecurityError => e
		warn("*** Passenger RequestHandler warning: " <<
			"HTTP header size exceeded maximum.")
		return nil
	end
def parse_native_request ( socket , channel , buffer ) headers_data = channel . read_scalar ( buffer , MAX_HEADER_SIZE ) if headers_data . nil? return end headers = split_by_null_into_hash ( headers_data ) if @connect_password && headers [ PASSENGER_CONNECT_PASSWORD ] != @connect_password warn "*** Passenger RequestHandler warning: " << "someone tried to connect with an invalid connect password." return else return [ headers , socket ] end rescue SecurityError => e warn ( "*** Passenger RequestHandler warning: " << "HTTP header size exceeded maximum." ) return nil end
Read the next request from the given socket, and return
a pair [headers, input_stream].
Read the next request from the given socket and return a pair [ headers input_stream ] .
socket
channel
buffer