Skip to content

Commit

Permalink
Merge pull request #28877 from taosdata/fix/fixConnTimeout
Browse files Browse the repository at this point in the history
increase conn timeout parameter
  • Loading branch information
hzcheng authored Nov 22, 2024
2 parents 4d58030 + 59b63d5 commit e4fd979
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/libs/transport/inc/transComm.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ typedef void* queue[2];

// #define TRANS_RETRY_COUNT_LIMIT 100 // retry count limit
// #define TRANS_RETRY_INTERVAL 15 // retry interval (ms)
#define TRANS_CONN_TIMEOUT 3000 // connect timeout (ms)
#define TRANS_CONN_TIMEOUT 5000 // connect timeout (ms)
#define TRANS_READ_TIMEOUT 3000 // read timeout (ms)
#define TRANS_PACKET_LIMIT 1024 * 1024 * 512

Expand Down
3 changes: 2 additions & 1 deletion source/libs/transport/src/transCli.c
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,8 @@ void cliConnTimeout(uv_timer_t* handle) {
return;
}

tTrace("%s conn %p conn timeout", CONN_GET_INST_LABEL(conn), conn);
cliMayUpdateFqdnCache(pThrd->fqdn2ipCache, conn->dstAddr);
tTrace("%s conn %p failed to connect %s since conn timeout", CONN_GET_INST_LABEL(conn), conn, conn->dstAddr);
TAOS_UNUSED(transUnrefCliHandle(conn));
}

Expand Down

0 comments on commit e4fd979

Please sign in to comment.