[svn] commit: r1523 - /trunk/src/bin/auth/main.cc

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Mar 18 17:38:23 UTC 2010


Author: jinmei
Date: Thu Mar 18 17:38:23 2010
New Revision: 1523

Log:
fixed a bug that TCPServer() failed to accept connections except the first one.
(regression of r1292)

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 17:38:23 2010
@@ -227,11 +227,10 @@
             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;
         }




More information about the bind10-changes mailing list