Merge pull request #1687 from taosdata/hotfix/rpcClose

close soket after FD is removed from fd set
This commit is contained in:
slguan 2020-04-22 19:04:18 +08:00 committed by GitHub
commit 285a7e2dd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -466,8 +466,8 @@ static void taosFreeFdObj(SFdObj *pFdObj) {
}
pFdObj->signature = NULL;
close(pFdObj->fd);
epoll_ctl(pThreadObj->pollFd, EPOLL_CTL_DEL, pFdObj->fd, NULL);
close(pFdObj->fd);
pThreadObj->numOfFds--;