Commit b6f56938 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

use REUSEADDR option for TCPServer

(also shorten the name space specification for the V6ONLY option)


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1525 e5f2f494-b856-4b98-b285-d166d9295462
parent cda0f9af
......@@ -207,8 +207,9 @@ public:
// 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(),
......
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