[svn] commit: r1525 - /trunk/src/bin/auth/main.cc
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Mar 18 18:02:41 UTC 2010
Author: jinmei
Date: Thu Mar 18 18:02:40 2010
New Revision: 1525
Log:
use REUSEADDR option for TCPServer
(also shorten the name space specification for the V6ONLY option)
Modified:
trunk/src/bin/auth/main.cc
Modified: trunk/src/bin/auth/main.cc
==============================================================================
--- trunk/src/bin/auth/main.cc (original)
+++ trunk/src/bin/auth/main.cc Thu Mar 18 18:02:40 2010
@@ -207,8 +207,9 @@
// Set v6-only (we use a different instantiation for v4,
// otherwise asio will bind to both v4 and v6
if (af == AF_INET6) {
- acceptor_.set_option(boost::asio::ip::v6_only(true));
- }
+ acceptor_.set_option(ip::v6_only(true));
+ }
+ acceptor_.set_option(tcp::acceptor::reuse_address(true));
acceptor_.bind(endpoint);
acceptor_.listen();
acceptor_.async_accept(listening_->getSocket(),
More information about the bind10-changes
mailing list