Merge pull request #22611 from taosdata/fix/handleTaosdQuit

handle taosd quit
This commit is contained in:
Haojun Liao 2023-08-29 18:11:38 +08:00 committed by GitHub
commit b44dd91674
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 2 deletions

View File

@ -289,8 +289,15 @@ static bool uvHandleReq(SSvrConn* pConn) {
}
void uvOnRecvCb(uv_stream_t* cli, ssize_t nread, const uv_buf_t* buf) {
SSvrConn* conn = cli->data;
STrans* pTransInst = conn->pTransInst;
SSvrConn* conn = cli->data;
SWorkThrd* pThrd = conn->hostThrd;
if (true == pThrd->quit) {
tInfo("work thread received quit msg, destroy conn");
destroyConn(conn, true);
return;
}
STrans* pTransInst = conn->pTransInst;
SConnBuffer* pBuf = &conn->readBuf;
if (nread > 0) {