eddic / fastcgipp

fastcgi++: A C++ FastCGI and Web development platform:
https://fastcgipp.isatec.ca
GNU Lesser General Public License v3.0
310 stars 94 forks source link

Fix for Poll gave fd xx which isn't in m_sockets #28 #43

Closed Erroneous1 closed 6 years ago

Erroneous1 commented 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.

Should valid be set to false before pollDel?

eddic commented 6 years ago

This is a very impressive find. I'm optimistic we can now finally lay this annoying bug to rest. Thanks so much man.