def METHOD_NAME(protocol_factory=None, server_hostname=None, host=None, port=None, ssl=False):
    if actual_protocol[0] is None:
        protocol = protocol_factory()
        actual_protocol[0] = protocol
        protocol.connection_made(fake_transport)
        return txaio.create_future_success((fake_transport, protocol))
    else:
        return txaio.create_future_error(RuntimeError("second connection fails completely"))