[svn] commit: r3608 - /branches/vorner-recursor-timeouts/src/lib/asiolink/asiolink.cc

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Nov 22 16:33:19 UTC 2010


Author: vorner
Date: Mon Nov 22 16:33:19 2010
New Revision: 3608

Log:
Bring again fix lost in merge

Modified:
    branches/vorner-recursor-timeouts/src/lib/asiolink/asiolink.cc

Modified: branches/vorner-recursor-timeouts/src/lib/asiolink/asiolink.cc
==============================================================================
--- branches/vorner-recursor-timeouts/src/lib/asiolink/asiolink.cc (original)
+++ branches/vorner-recursor-timeouts/src/lib/asiolink/asiolink.cc Mon Nov 22 16:33:19 2010
@@ -303,7 +303,7 @@
              *     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 @@
                 question_(question),
                 upstream_(upstream),
                 buffer_(buffer),
-                server_(server),
+                server_(server->clone()),
                 timeout_(timeout),
                 retries_(retries)
             {




More information about the bind10-changes mailing list