Always remove all the DNS sockets on an c-ares event

Because c-ares may close one of its socket, even if it’s not the one that
has the event. Otherwise we may not know when a socket has been removed from
our poller (automatically, when close()ed) and this leads to bugs.
This commit is contained in:
louiz’
2016-07-28 10:34:01 +02:00
parent de0eff6e94
commit 11a1c0cc99
4 changed files with 26 additions and 5 deletions
+1
View File
@@ -40,6 +40,7 @@ public:
* and library.
*/
void destroy();
void remove_all_sockets_from_poller();
ares_channel& get_channel();
static DNSHandler instance;