未验证 提交 285a7e2d 编写于 作者: S slguan 提交者: GitHub

Merge pull request #1687 from taosdata/hotfix/rpcClose

close soket after FD is removed from fd set
...@@ -466,8 +466,8 @@ static void taosFreeFdObj(SFdObj *pFdObj) { ...@@ -466,8 +466,8 @@ static void taosFreeFdObj(SFdObj *pFdObj) {
} }
pFdObj->signature = NULL; pFdObj->signature = NULL;
close(pFdObj->fd);
epoll_ctl(pThreadObj->pollFd, EPOLL_CTL_DEL, pFdObj->fd, NULL); epoll_ctl(pThreadObj->pollFd, EPOLL_CTL_DEL, pFdObj->fd, NULL);
close(pFdObj->fd);
pThreadObj->numOfFds--; pThreadObj->numOfFds--;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册