Merge pull request #28877 from taosdata/fix/fixConnTimeout
increase conn timeout parameter
This commit is contained in:
commit
e4fd979185
|
@ -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
|
||||
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue