소스 검색

is_resource check

walkor 10 년 전
부모
커밋
2ae36a1e64
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Connection/TcpConnection.php

+ 1 - 1
Connection/TcpConnection.php

@@ -254,7 +254,7 @@ class TcpConnection extends ConnectionInterface
             else
             {
                 // 如果连接断开
-                if(feof($this->_socket))
+                if(feof($this->_socket) || !is_resource($this->_socket))
                 {
                     // status统计发送失败次数
                     self::$statistics['send_fail']++;