    # File lib/phusion_passenger/utils.rb, line 426
            def connect_to_server(address)
                    case get_socket_address_type(address)
                    when :unix
                            return UNIXSocket.new(address.sub(/^unix:/, ''))
                    when :tcp
                            host, port = address.sub(%r{^tcp://}, '').split(':', 2)
                            port = port.to_i
                            return TCPSocket.new(host, port)
                    else
                            raise ArgumentError, "Unknown socket address type for '#{address}'."
                    end
            end