mirror of
https://github.com/danog/phpseclib.git
synced 2024-11-26 20:35:21 +01:00
SSH2: close channel when a timeout occurs
This commit is contained in:
parent
cd7de5723c
commit
732bda2860
@ -3815,6 +3815,7 @@ class Net_SSH2
|
||||
// on windows this returns a "Warning: Invalid CRT parameters detected" error
|
||||
if (!@stream_select($read, $write, $except, $sec, $usec) && !count($read)) {
|
||||
$this->is_timeout = true;
|
||||
$this->_close_channel($client_channel);
|
||||
return true;
|
||||
}
|
||||
$elapsed = strtok(microtime(), ' ') + strtok('') - $start;
|
||||
|
Loading…
Reference in New Issue
Block a user