Commit 557ba17c authored by Michal Vaner's avatar Michal Vaner
Browse files

Bring again fix lost in merge

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/vorner-recursor-timeouts@3608 e5f2f494-b856-4b98-b285-d166d9295462
parent 5285361e
......@@ -303,7 +303,7 @@ class RunningQuery : public UDPQuery::Callback {
* it is destroyed too soon. But who deletes it now?
*/
// Server to notify when we succeed or fail
DNSServer* server_;
shared_ptr<DNSServer> server_;
/*
* TODO Do something more clever with timeouts. In the long term, some
* computation of average RTT, increase with each retry, etc.
......@@ -331,7 +331,7 @@ class RunningQuery : public UDPQuery::Callback {
question_(question),
upstream_(upstream),
buffer_(buffer),
server_(server),
server_(server->clone()),
timeout_(timeout),
retries_(retries)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment