改名
This commit is contained in:
+1
-1
@@ -417,7 +417,7 @@ class Socket
|
||||
*/
|
||||
protected function isSocketDead()
|
||||
{
|
||||
return !is_resource($this->stream) || @feof($this->stream);
|
||||
return $this->stream instanceof \Swoole\Coroutine\Socket && $this->stream->checkLiveness();
|
||||
}
|
||||
|
||||
// }}}
|
||||
|
||||
Reference in New Issue
Block a user