fix: invalid read
This commit is contained in:
parent
a2982d7c25
commit
05e61bac89
|
@ -893,14 +893,14 @@ static void cliHandleFastFail(SCliConn* pConn, int status) {
|
||||||
|
|
||||||
SCliMsg* pMsg = transQueueGet(&pConn->cliMsgs, 0);
|
SCliMsg* pMsg = transQueueGet(&pConn->cliMsgs, 0);
|
||||||
|
|
||||||
if (pMsg) {
|
// if (pMsg) {
|
||||||
STraceId* trace = &pMsg->msg.info.traceId;
|
STraceId* trace = &pMsg->msg.info.traceId;
|
||||||
tGError("%s msg %s failed to send, conn %p failed to connect to %s, reason: %s", CONN_GET_INST_LABEL(pConn),
|
tGError("%s msg %s failed to send, conn %p failed to connect to %s, reason: %s", CONN_GET_INST_LABEL(pConn),
|
||||||
TMSG_INFO(pMsg->msg.msgType), pConn, pConn->ip, uv_strerror(status));
|
TMSG_INFO(pMsg->msg.msgType), pConn, pConn->ip, uv_strerror(status));
|
||||||
} else {
|
//} else {
|
||||||
tError("%s msg %s failed to send, conn %p failed to connect to %s, reason: %s", CONN_GET_INST_LABEL(pConn),
|
// tError("%s msg %s failed to send, conn %p failed to connect to %s, reason: %s", CONN_GET_INST_LABEL(pConn),
|
||||||
TMSG_INFO(0), pConn, pConn->ip, uv_strerror(status));
|
// TMSG_INFO(0), pConn, pConn->ip, uv_strerror(status));
|
||||||
}
|
//}
|
||||||
|
|
||||||
uv_timer_stop(pConn->timer);
|
uv_timer_stop(pConn->timer);
|
||||||
pConn->timer->data = NULL;
|
pConn->timer->data = NULL;
|
||||||
|
|
Loading…
Reference in New Issue