Merge branch 'ssh-custom-socket-1.0' into ssh-custom-socket-2.0

Conflicts:
	phpseclib/Net/SSH2.php
This commit is contained in:
terrafrost 2015-07-17 13:11:57 -05:00
commit 690704d36e

View File

@ -998,14 +998,13 @@ class SSH2
$this->curTimeout = $this->timeout;
$host = $this->host . ':' . $this->port;
$this->last_packet = microtime(true);
if (!is_resource($this->fsock)) {
$start = microtime(true);
$this->fsock = @fsockopen($this->host, $this->port, $errno, $errstr, $this->curTimeout);
if (!$this->fsock) {
$host = $this->host . ':' . $this->port;
user_error(rtrim("Cannot connect to $host. Error $errno. $errstr"));
return false;
}