mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-29 04:23:34 +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) {
|
while (true) {
|
||||||
if ($this->curTimeout) {
|
if ($this->curTimeout) {
|
||||||
|
if ($this->curTimeout < 0) {
|
||||||
|
$this->_close_channel($client_channel);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
$read = array($this->fsock);
|
$read = array($this->fsock);
|
||||||
$write = $except = NULL;
|
$write = $except = NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user