From c090e54be9c01f862a734ad31a3e6c01ff259d3a Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Wed, 13 May 2015 00:43:00 +0200 Subject: core_dns Add DNS timeout timer in Process() not in DNS::Request constructor --- src/coremods/core_dns.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/coremods') diff --git a/src/coremods/core_dns.cpp b/src/coremods/core_dns.cpp index 91bd45b54..5493470ae 100644 --- a/src/coremods/core_dns.cpp +++ b/src/coremods/core_dns.cpp @@ -464,6 +464,9 @@ class MyManager : public Manager, public Timer, public EventHandler if (SocketEngine::SendTo(this, buffer, len, 0, &this->myserver.sa, this->myserver.sa_size()) != len) throw Exception("DNS: Unable to send query"); + + // Add timer for timeout + ServerInstance->Timers.AddTimer(req); } void RemoveRequest(DNS::Request* req) -- cgit v1.2.3