diff --git a/source/libs/transport/src/transCli.c b/source/libs/transport/src/transCli.c index fbdc17040fd355dbfdaf8229c5aee4cde13fea80..8309a41abd01f56c24ad2e97fd85b7274592ab19 100644 --- a/source/libs/transport/src/transCli.c +++ b/source/libs/transport/src/transCli.c @@ -1080,7 +1080,9 @@ static void cliSendBatchCb(uv_write_t* req, int status) { static void cliHandleFastFail(SCliConn* pConn, int status) { SCliThrd* pThrd = pConn->hostThrd; STrans* pTransInst = pThrd->pTransInst; - tError("conn %p free twice, reason:%s", pConn, uv_err_name(status)); + + if (status == -1) status = ENETUNREACH; + if (pConn->pBatch == NULL) { SCliMsg* pMsg = transQueueGet(&pConn->cliMsgs, 0); @@ -1106,6 +1108,8 @@ static void cliHandleFastFail(SCliConn* pConn, int status) { } } } else { + tError("%s batch msg failed to send, conn %p failed to connect to %s, reason: %s", CONN_GET_INST_LABEL(pConn), + pConn, pConn->ip, uv_strerror(status)); cliDestroyBatch(pConn->pBatch); pConn->pBatch = NULL; }