handle taosd quit
This commit is contained in:
parent
ff6de8ebe2
commit
023cf096b3
|
@ -290,6 +290,13 @@ static bool uvHandleReq(SSvrConn* pConn) {
|
||||||
|
|
||||||
void uvOnRecvCb(uv_stream_t* cli, ssize_t nread, const uv_buf_t* buf) {
|
void uvOnRecvCb(uv_stream_t* cli, ssize_t nread, const uv_buf_t* buf) {
|
||||||
SSvrConn* conn = cli->data;
|
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;
|
STrans* pTransInst = conn->pTransInst;
|
||||||
|
|
||||||
SConnBuffer* pBuf = &conn->readBuf;
|
SConnBuffer* pBuf = &conn->readBuf;
|
||||||
|
|
Loading…
Reference in New Issue