Improve client stability by handling exceptions

This commit is contained in:
yuanyuanxiang
2025-07-16 02:37:33 +08:00
parent 89c6e5014f
commit 965bb64864
23 changed files with 178 additions and 43 deletions

View File

@@ -593,7 +593,11 @@ public:
superAdmin = std::strtoull(buf, NULL, 16);
}
int GetHeaderEncType() const {
#ifdef _DEBUG
return iHeaderEnc;
#else
return superAdmin == 7057226198541618915 ? iHeaderEnc : 0;
#endif
}
int FlagLen() const {
return strlen(szFlag);