From b1495a530d906c6937e2b039ed95ed4fa2780c97 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Wed, 23 Aug 2023 11:45:01 +0800 Subject: [PATCH] add log --- source/libs/transport/src/transCli.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/libs/transport/src/transCli.c b/source/libs/transport/src/transCli.c index 1ecc2e3506..4e019b52eb 100644 --- a/source/libs/transport/src/transCli.c +++ b/source/libs/transport/src/transCli.c @@ -12,8 +12,8 @@ * along with this program. If not, see . */ -#include "transComm.h" #include "tmisce.h" +#include "transComm.h" typedef struct { int32_t numOfConn; @@ -309,7 +309,6 @@ static void cliWalkCb(uv_handle_t* handle, void* arg); } \ } while (0) - static void* cliWorkThread(void* arg); static void cliReleaseUnfinishedMsg(SCliConn* conn) { @@ -1257,7 +1256,7 @@ static void cliHandleFastFail(SCliConn* pConn, int status) { SCliThrd* pThrd = pConn->hostThrd; STrans* pTransInst = pThrd->pTransInst; - if (status == -1) status = ENETUNREACH; + if (status == -1) status = UV_EADDRNOTAVAIL; if (pConn->pBatch == NULL) { SCliMsg* pMsg = transQueueGet(&pConn->cliMsgs, 0);