Reviewed By: karl
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664875
13f79535-47bb-0310-9956-
ffa450edef68
// Holy shit we failed them all. The system is totally ill!
$error = 'TSocketPool: All hosts in pool are down. ';
- $hostlist = implode(',', $this->hosts_);
- $error .= '('.$hostlist.':'.$this->port_.')';
+ $hosts = array();
+ foreach ($this->servers_ as $server) {
+ $hosts []= $server['host'].':'.$server['port'];
+ }
+ $hostlist = implode(',', $hosts);
+ $error .= '('.$hostlist.')';
if ($this->debug_) {
error_log($error);
}