add time out

This commit is contained in:
yihaoDeng 2024-10-10 15:24:00 +08:00
parent 142ded06c6
commit 17faedcee8
1 changed files with 2 additions and 2 deletions

View File

@ -837,7 +837,7 @@ static int32_t cliGetConnFromPool(SCliThrd* pThrd, const char* key, SCliConn** p
return TSDB_CODE_RPC_NETWORK_BUSY;
}
queue* h = QUEUE_TAIL(&plist->conns);
queue* h = QUEUE_HEAD(&plist->conns);
plist->size -= 1;
QUEUE_REMOVE(h);
@ -894,7 +894,7 @@ static void addConnToPool(void* pool, SCliConn* conn) {
conn->heapMissHit = 0;
if (conn->list->size >= 2) {
if (conn->list->size >= 5) {
STaskArg* arg = taosMemoryCalloc(1, sizeof(STaskArg));
if (arg == NULL) return;
arg->param1 = conn;