Home GnuPG

Allow ConduitClient to specify an explicit Host
34b7825ae1daUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Allow ConduitClient to specify an explicit Host

Summary:
Ref T2783. To query a repository, we want to connect to a node which hosts it, but also connect using the correct instance hostname.

Allow ConduitClient to specify an explicit hostname.

Test Plan:
Used a script like this to verify that setHost() is impactful:

<?php

require_once 'scripts/__init_script__.php';

$response = id(new ConduitClient('http://127.0.0.1/'))
  ->setHost('local.phacility.com')
  ->callMethodSynchronous('conduit.ping', array());

var_dump($response);

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T2783

Differential Revision: https://secure.phabricator.com/D10960

Details

Provenance
epriestley <git@epriestley.com>Authored on Dec 11 2014, 12:27 AM
Parents
rPHUTIL3d31d3874f1b: Support an explicit connection timeout parameter for database connections
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHUTIL34b7825ae1da: Allow ConduitClient to specify an explicit Host (authored by epriestley <git@epriestley.com>).Dec 11 2014, 12:27 AM