SSH2: Improve timeout handling

(thanks, SergeyTsalkov!)
This commit is contained in:
terrafrost 2013-04-20 20:43:05 -05:00
parent e0abab9bb4
commit 292340cdd5

View File

@ -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;