소스 검색

Update TcpConnection.php

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

+ 2 - 1
Connection/TcpConnection.php

@@ -449,7 +449,8 @@ class TcpConnection extends ConnectionInterface
                    // 包错误
                    else
                    {
-                       $this->close('error package. package_length='.var_export($this->_currentPackageLength, true));
+                       echo 'error package. package_length='.var_export($this->_currentPackageLength, true);
+                       $this->destroy();
                        return;
                    }
                }