Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
0611ecbe
T
TDengine
项目概览
taosdata
/
TDengine
大约 1 年 前同步成功
通知
1184
Star
22015
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0611ecbe
编写于
11月 28, 2022
作者:
dengyihao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
change paramter
上级
aff649de
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
7 addition
and
6 deletion
+7
-6
source/client/src/clientImpl.c
source/client/src/clientImpl.c
+1
-1
source/dnode/mgmt/node_mgmt/src/dmTransport.c
source/dnode/mgmt/node_mgmt/src/dmTransport.c
+1
-1
source/libs/transport/src/transCli.c
source/libs/transport/src/transCli.c
+3
-2
source/libs/transport/src/transComm.c
source/libs/transport/src/transComm.c
+1
-1
source/libs/transport/src/transSvr.c
source/libs/transport/src/transSvr.c
+1
-1
未找到文件。
source/client/src/clientImpl.c
浏览文件 @
0611ecbe
...
...
@@ -131,7 +131,7 @@ STscObj* taos_connect_internal(const char* ip, const char* user, const char* pas
p
=
taosMemoryCalloc
(
1
,
sizeof
(
struct
SAppInstInfo
));
p
->
mgmtEp
=
epSet
;
taosThreadMutexInit
(
&
p
->
qnodeMutex
,
NULL
);
p
->
pTransporter
=
openTransporter
(
user
,
secretEncrypt
,
tsNumOfCores
);
p
->
pTransporter
=
openTransporter
(
user
,
secretEncrypt
,
tsNumOfCores
/
2
);
p
->
pAppHbMgr
=
appHbMgrInit
(
p
,
key
);
if
(
NULL
==
p
->
pAppHbMgr
)
{
destroyAppInst
(
p
);
...
...
source/dnode/mgmt/node_mgmt/src/dmTransport.c
浏览文件 @
0611ecbe
...
...
@@ -250,7 +250,7 @@ int32_t dmInitClient(SDnode *pDnode) {
SRpcInit
rpcInit
=
{
0
};
rpcInit
.
label
=
"DND-C"
;
rpcInit
.
numOfThreads
=
4
;
rpcInit
.
numOfThreads
=
tsNumOfRpcThreads
;
rpcInit
.
cfp
=
(
RpcCfp
)
dmProcessRpcMsg
;
rpcInit
.
sessions
=
1024
;
rpcInit
.
connType
=
TAOS_CONN_CLIENT
;
...
...
source/libs/transport/src/transCli.c
浏览文件 @
0611ecbe
...
...
@@ -653,9 +653,10 @@ static void cliRecvCb(uv_stream_t* handle, ssize_t nread, const uv_buf_t* buf) {
static
SCliConn
*
cliCreateConn
(
SCliThrd
*
pThrd
)
{
SCliConn
*
conn
=
taosMemoryCalloc
(
1
,
sizeof
(
SCliConn
));
// read/write stream handle
conn
->
stream
=
(
uv_stream_t
*
)
taosMemoryMalloc
(
sizeof
(
uv_
tcp
_t
));
conn
->
stream
=
(
uv_stream_t
*
)
taosMemoryMalloc
(
sizeof
(
uv_
stream
_t
));
uv_tcp_init
(
pThrd
->
loop
,
(
uv_tcp_t
*
)(
conn
->
stream
));
conn
->
stream
->
data
=
conn
;
transSetConnOption
((
uv_tcp_t
*
)
conn
->
stream
);
uv_timer_t
*
timer
=
taosArrayGetSize
(
pThrd
->
timerList
)
>
0
?
*
(
uv_timer_t
**
)
taosArrayPop
(
pThrd
->
timerList
)
:
NULL
;
if
(
timer
==
NULL
)
{
...
...
@@ -1182,7 +1183,7 @@ bool cliRecvReleaseReq(SCliConn* conn, STransMsgHead* pHead) {
static
void
*
cliWorkThread
(
void
*
arg
)
{
SCliThrd
*
pThrd
=
(
SCliThrd
*
)
arg
;
pThrd
->
pid
=
taosGetSelfPthreadId
();
setThreadName
(
"trans-cli-work"
);
setThreadName
(
"trans-cli-work
er
"
);
uv_run
(
pThrd
->
loop
,
UV_RUN_DEFAULT
);
tDebug
(
"thread quit-thread:%08"
PRId64
,
pThrd
->
pid
);
...
...
source/libs/transport/src/transComm.c
浏览文件 @
0611ecbe
...
...
@@ -202,7 +202,7 @@ bool transReadComplete(SConnBuffer* connBuf) {
}
int
transSetConnOption
(
uv_tcp_t
*
stream
)
{
uv_tcp_nodelay
(
stream
,
0
);
uv_tcp_nodelay
(
stream
,
1
);
int
ret
=
uv_tcp_keepalive
(
stream
,
5
,
60
);
return
ret
;
}
...
...
source/libs/transport/src/transSvr.c
浏览文件 @
0611ecbe
...
...
@@ -846,7 +846,7 @@ static bool addHandleToAcceptloop(void* arg) {
return
true
;
}
void
*
transWorkerThread
(
void
*
arg
)
{
setThreadName
(
"trans-s
rv-work
"
);
setThreadName
(
"trans-s
vr-worker
"
);
SWorkThrd
*
pThrd
=
(
SWorkThrd
*
)
arg
;
uv_run
(
pThrd
->
loop
,
UV_RUN_DEFAULT
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录