lib/phusion_passenger/abstract_request_handler.rb
def soft_shutdown
		@select_timeout = @soft_termination_linger_time
		@graceful_termination_pipe[1].close rescue nil
		if @detach_key && @pool_account_username && @pool_account_password
			client = MessageClient.new(@pool_account_username, @pool_account_password)
			begin
				client.detach(@detach_key)
			ensure
				client.close
			end
		end
	end
# Remove this request handler from the application pool so that no
# new connections will come in. Then make the main loop quit a few
# seconds after the last time a connection came in. This all is to
# ensure that no connections come in while we're shutting down.
#
# May only be called while the main loop is running. May be called
# from any thread.
Remove this request handler from the application pool so that no
new connections will come in. Then make the main loop quit a few
seconds after the last time a connection came in. This all is to
ensure that no connections come in while we're shutting down.

May only be called while the main loop is running. May be called
from any thread.
Remove this request handler from the application pool so that no new connections will come in . Then make the main loop quit a few seconds after the last time a connection came in . This all is to ensure that no connections come in while we ' re shutting down . May only be called while the main loop is running . May be called from any thread .
def soft_shutdown
		@select_timeout = @soft_termination_linger_time
		@graceful_termination_pipe[1].close rescue nil
		if @detach_key && @pool_account_username && @pool_account_password
			client = MessageClient.new(@pool_account_username, @pool_account_password)
			begin
				client.detach(@detach_key)
			ensure
				client.close
			end
		end
	end
def soft_shutdown @select_timeout = @soft_termination_linger_time @graceful_termination_pipe [ 1 ] . close rescue nil if @detach_key && @pool_account_username && @pool_account_password client = MessageClient . new ( @pool_account_username , @pool_account_password ) begin client . detach ( @detach_key ) ensure client . close end end end
Remove this request handler from the application pool so that no
new connections will come in.
Remove this request handler from the application pool so that no new connections will come in .