Closed Erroneous1 closed 6 years ago
It looks like Socket::~Socket() or Socket::close() is being called before SocketGroupt::pollDel(). This blog recommends calling epoll_ctl(..., EPOLL_CTL_DEL, ...) before close. After this commit my issue seems to have disappeared.
Socket::~Socket()
Socket::close()
SocketGroupt::pollDel()
epoll_ctl(..., EPOLL_CTL_DEL, ...)
close
Should valid be set to false before pollDel?
This is a very impressive find. I'm optimistic we can now finally lay this annoying bug to rest. Thanks so much man.
It looks like
Socket::~Socket()
orSocket::close()
is being called beforeSocketGroupt::pollDel()
. This blog recommends callingepoll_ctl(..., EPOLL_CTL_DEL, ...)
beforeclose
. After this commit my issue seems to have disappeared.Should valid be set to false before pollDel?