This commit is contained in:
2020-10-09 17:33:50 +08:00
parent 8bef56226b
commit d62193bd49
+1 -1
View File
@@ -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();
}
// }}}