From 51fdfd851359af5eeb2e302a0f1c0738d19051bb Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Mon, 27 Feb 2023 11:02:10 +0800 Subject: [PATCH] fix: change conn pool --- source/libs/transport/src/transCli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libs/transport/src/transCli.c b/source/libs/transport/src/transCli.c index b156d9b5dd..be34cb6c8b 100644 --- a/source/libs/transport/src/transCli.c +++ b/source/libs/transport/src/transCli.c @@ -736,7 +736,7 @@ static void addConnToPool(void* pool, SCliConn* conn) { QUEUE_PUSH(&conn->list->conns, &conn->q); conn->list->size += 1; - if (conn->list->size >= 250) { + if (conn->list->size >= 20) { STaskArg* arg = taosMemoryCalloc(1, sizeof(STaskArg)); arg->param1 = conn; arg->param2 = thrd; -- GitLab