conn timeout refactor
This commit is contained in:
parent
197d5d4b7a
commit
174ba6ad6e
|
@ -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;
|
||||||
|
|
||||||
uv_timer_stop(pConn->timer);
|
if (pConn->timer != NULL) {
|
||||||
pConn->timer->data = NULL;
|
uv_timer_stop(pConn->timer);
|
||||||
taosArrayPush(pThrd->timerList, &pConn->timer);
|
pConn->timer->data = NULL;
|
||||||
pConn->timer = NULL;
|
taosArrayPush(pThrd->timerList, &pConn->timer);
|
||||||
|
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));
|
||||||
|
|
Loading…
Reference in New Issue