作者 邓超

proxy

... ... @@ -53,8 +53,6 @@ class ImapClient {
$content
);
// 设置为非阻塞模式
$this->isBlocking = stream_set_blocking($this->socket, false);
if($error){
throw new \Exception($error);
... ... @@ -63,6 +61,10 @@ class ImapClient {
if (!$this->socket) {
throw new \Exception($this->host." connection fail.");
}
// 设置为非阻塞模式
$this->isBlocking = stream_set_blocking($this->socket, false);
}
... ...