fix read error

This commit is contained in:
yihaoDeng 2022-08-07 19:39:24 +08:00
parent f66278b39a
commit bfb6bce007
1 changed files with 1 additions and 0 deletions

View File

@ -482,6 +482,7 @@ void cliReadTimeoutCb(uv_timer_t* handle) {
// set up timeout cb
SCliConn* conn = handle->data;
tTrace("%s conn %p timeout, ref:%d", CONN_GET_INST_LABEL(conn), conn, T_REF_VAL_GET(conn));
uv_read_stop(conn->stream);
cliHandleExceptImpl(conn, TSDB_CODE_RPC_TIMEOUT);
}