summaryrefslogtreecommitdiff
path: root/louloulibs/network/dns_handler.hpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-07-09 13:54:24 +0200
committerFlorent Le Coz <louiz@louiz.org>2015-07-09 14:35:29 +0200
commit4130f1679d909e90d691d47d07cd0e0d4fbe64e1 (patch)
treec9d4ab6413ef7b2bbde1f117c92bf6ac09d32613 /louloulibs/network/dns_handler.hpp
parenta42af9e700bcf54777b53b5d0ca999b3b0c107e9 (diff)
downloadbiboumi-4130f1679d909e90d691d47d07cd0e0d4fbe64e1.tar.gz
biboumi-4130f1679d909e90d691d47d07cd0e0d4fbe64e1.tar.bz2
biboumi-4130f1679d909e90d691d47d07cd0e0d4fbe64e1.tar.xz
biboumi-4130f1679d909e90d691d47d07cd0e0d4fbe64e1.zip
Check for timeouts on the DNS resolution using c-ares
ref #3083
Diffstat (limited to 'louloulibs/network/dns_handler.hpp')
-rw-r--r--louloulibs/network/dns_handler.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/louloulibs/network/dns_handler.hpp b/louloulibs/network/dns_handler.hpp
index a515f52..ec35374 100644
--- a/louloulibs/network/dns_handler.hpp
+++ b/louloulibs/network/dns_handler.hpp
@@ -11,7 +11,7 @@ class DNSSocketHandler;
# include <ares.h>
# include <memory>
# include <string>
-# include <list>
+# include <vector>
void on_hostname4_resolved(void* arg, int status, int, struct hostent* hostent);
void on_hostname6_resolved(void* arg, int status, int, struct hostent* hostent);
@@ -49,7 +49,7 @@ private:
* call to ares_fds. DNSSocketHandlers are added to it or removed from it
* in the watch_dns_sockets() method
*/
- std::list<std::unique_ptr<DNSSocketHandler>> socket_handlers;
+ std::vector<std::unique_ptr<DNSSocketHandler>> socket_handlers;
ares_channel channel;
DNSHandler(const DNSHandler&) = delete;