未验证 提交 1fe6f5d8 编写于 作者: S Shengliang Guan 提交者: GitHub

Merge pull request #19115 from taosdata/fix/fixRpcThread2.6

fix: change rpc rend-recv thread
......@@ -270,7 +270,8 @@ void *rpcOpen(const SRpcInit *pInit) {
if (pInit->label) tstrncpy(pRpc->label, pInit->label, sizeof(pRpc->label));
pRpc->connType = pInit->connType;
if (pRpc->connType == TAOS_CONN_CLIENT) {
pRpc->numOfThreads = pInit->numOfThreads;
pRpc->numOfThreads =
pInit->numOfThreads > TSDB_MAX_RPC_THREADS * 2 ? TSDB_MAX_RPC_THREADS * 2 : pInit->numOfThreads;
} else {
pRpc->numOfThreads = pInit->numOfThreads > TSDB_MAX_RPC_THREADS ? TSDB_MAX_RPC_THREADS : pInit->numOfThreads;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册