提交 174ba6ad 编写于 作者: dengyihao's avatar dengyihao

conn timeout refactor

上级 197d5d4b
...@@ -846,10 +846,12 @@ void cliConnCb(uv_connect_t* req, int status) { ...@@ -846,10 +846,12 @@ void cliConnCb(uv_connect_t* req, int status) {
SCliConn* pConn = req->data; SCliConn* pConn = req->data;
SCliThrd* pThrd = pConn->hostThrd; SCliThrd* pThrd = pConn->hostThrd;
if (pConn->timer != NULL) {
uv_timer_stop(pConn->timer); uv_timer_stop(pConn->timer);
pConn->timer->data = NULL; pConn->timer->data = NULL;
taosArrayPush(pThrd->timerList, &pConn->timer); taosArrayPush(pThrd->timerList, &pConn->timer);
pConn->timer = NULL; pConn->timer = NULL;
}
if (status != 0) { if (status != 0) {
tError("%s conn %p failed to connect server:%s", CONN_GET_INST_LABEL(pConn), pConn, uv_strerror(status)); tError("%s conn %p failed to connect server:%s", CONN_GET_INST_LABEL(pConn), pConn, uv_strerror(status));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册