ParsePack pInfo->header = !pInfo->header; pInfo->length = required; 如果当第一次循环,header 被置为false时,正巧调用了Stop()或正巧在回调同线程中调用了Stop(),那么会导致重连后的第一个数据回调不正常。建议Stop后m_pkInfo.Reset();一下。
ParsePack
pInfo->header = !pInfo->header;
pInfo->length = required;
如果当第一次循环,header 被置为false时,正巧调用了Stop()或正巧在回调同线程中调用了Stop(),那么会导致重连后的第一个数据回调不正常。建议Stop后m_pkInfo.Reset();一下。