mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-04 20:47:54 +00:00
SSH2: Improve timeout handling
(thanks, SergeyTsalkov!)
This commit is contained in:
parent
e0abab9bb4
commit
292340cdd5
@ -2417,6 +2417,11 @@ class Net_SSH2 {
|
||||
|
||||
while (true) {
|
||||
if ($this->curTimeout) {
|
||||
if ($this->curTimeout < 0) {
|
||||
$this->_close_channel($client_channel);
|
||||
return true;
|
||||
}
|
||||
|
||||
$read = array($this->fsock);
|
||||
$write = $except = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user