[svn] commit: r2689 - /trunk/src/bin/auth/asio_link.cc

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Aug 10 15:38:08 UTC 2010


Author: jinmei
Date: Tue Aug 10 15:38:08 2010
New Revision: 2689

Log:
enable the REUSE addr option for UDP sockets, too.
(trac #298)

Modified:
    trunk/src/bin/auth/asio_link.cc

Modified: trunk/src/bin/auth/asio_link.cc
==============================================================================
--- trunk/src/bin/auth/asio_link.cc (original)
+++ trunk/src/bin/auth/asio_link.cc Tue Aug 10 15:38:08 2010
@@ -368,6 +368,7 @@
         dns_message_(Message::PARSE),
         custom_callback_(NULL)
     {
+        socket_.set_option(socket_base::reuse_address(true));
         // Set v6-only (we use a different instantiation for v4,
         // otherwise asio will bind to both v4 and v6
         if (addr.is_v6()) {




More information about the bind10-changes mailing list