fix crash

This commit is contained in:
ruanshudong 2020-01-30 15:54:15 +08:00
parent 08cddb7d4b
commit 8b3524243a
2 changed files with 6 additions and 3 deletions

View File

@ -8,12 +8,14 @@ echo ${WORKDIR}
killall -9 QuickStartDemo
echo "${WORKDIR}/../bin/QuickStartDemo --config=${WORKDIR}/../../examples/QuickStartDemo/HelloServer/Server/config.conf"
echo "start server: ${WORKDIR}/../bin/QuickStartDemo --config=${WORKDIR}/../../examples/QuickStartDemo/HelloServer/Server/config.conf &"
${WORKDIR}/../bin/QuickStartDemo --config=${WORKDIR}/../../examples/QuickStartDemo/HelloServer/Server/config.conf &
sleep 3
echo "${WORKDIR}/../bin/QuickStartDemoClient"
echo "client: ${WORKDIR}/../bin/QuickStartDemoClient"
${WORKDIR}/../bin/QuickStartDemoClient

View File

@ -231,8 +231,9 @@ struct ReqMessage : public TC_HandleBase
proxy = NULL;
pObjectProxy = pObj;
response = std::make_shared<ResponsePacket>();
// sReqData.clear();
sReqData = std::make_shared<TC_NetWorkBuffer::SendBuffer>();
sReqData = std::make_shared<TC_NetWorkBuffer::SendBuffer>();
pMonitor = NULL;
bMonitorFin = false;