mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-28 12:10:59 +00:00
Merge branch '3.0'
This commit is contained in:
commit
0ca4393a2a
@ -3174,7 +3174,11 @@ class SSH2
|
||||
|
||||
if (!is_resource($this->fsock) || feof($this->fsock)) {
|
||||
$this->bitmap = 0;
|
||||
throw new ConnectionClosedException('Connection closed (by server) prematurely ' . $elapsed . 's');
|
||||
$str = 'Connection closed (by server) prematurely';
|
||||
if (isset($elapsed)) {
|
||||
$str.= ' ' . $elapsed . 's';
|
||||
}
|
||||
throw new ConnectionClosedException($str);
|
||||
}
|
||||
|
||||
$start = microtime(true);
|
||||
|
Loading…
Reference in New Issue
Block a user