Commit 7153686d authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

fixed a bug that TCPServer() failed to accept connections except the first one.

(regression of r1292)


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1523 e5f2f494-b856-4b98-b285-d166d9295462
parent 286c3aad
......@@ -227,11 +227,10 @@ public:
assert(new_client == listening_);
new_client->start();
listening_ = new TCPClient(io_service_);
acceptor_.async_accept(new_client->getSocket(),
acceptor_.async_accept(listening_->getSocket(),
boost::bind(&TCPServer::handleAccept,
this, listening_,
placeholders::error));
listening_ = new_client;
} else {
delete new_client;
}
......
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