mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-02 17:52:59 +01:00
Merge branch '2.0' into 3.0
This commit is contained in:
commit
fbf6027a43
@ -3295,7 +3295,11 @@ class SSH2
|
|||||||
|
|
||||||
if (!is_resource($this->fsock) || feof($this->fsock)) {
|
if (!is_resource($this->fsock) || feof($this->fsock)) {
|
||||||
$this->bitmap = 0;
|
$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);
|
$start = microtime(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user