dermesser / libsocket

The ultimate socket library for C and C++, supporting TCP, UDP and Unix sockets (DGRAM and STREAM) on Linux, FreeBSD, Solaris. See also my uvco library for a refreshed version!
https://borgac.net/~lbo/doc/libsocket/
Other
797 stars 195 forks source link

bug for epollset #65

Closed ancloud-teach closed 4 years ago

ancloud-teach commented 4 years ago

in the epollset constructor, it create the epollfd. epollfd = epoll_create1(0); but in the destructor, it don't close it. template

epollset<SocketT>::~epollset(void) {
    close(epollfd);  /* add close the epollfd */
    delete[] events;
}
dermesser commented 4 years ago

yes! you're right. Thank you for the find! Awkward that this has escaped me for so long :)