Fix Net_Socket bug with no timeout (failed connection in managesieve plugin)

pull/73/head
Aleksander Machniak 12 years ago
parent 52f2a69855
commit 893c274045

@ -267,7 +267,12 @@ class Net_Socket extends PEAR
$this->timeout = $seconds + $microseconds/1000000;
}
return stream_set_timeout($this->fp, (int) $seconds, (int) $microseconds);
if ($this->timeout > 0) {
return stream_set_timeout($this->fp, (int) $seconds, (int) $microseconds);
}
else {
return false;
}
}
/**

Loading…
Cancel
Save