Merge pull request #1687 from taosdata/hotfix/rpcClose
close soket after FD is removed from fd set
This commit is contained in:
commit
285a7e2dd4
|
@ -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--;
|
||||
|
||||
|
|
Loading…
Reference in New Issue