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

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Mar 11 00:17:47 UTC 2010


Author: jinmei
Date: Thu Mar 11 00:17:47 2010
New Revision: 1307

Log:
clarified that errors are intentionally ignored in UDPServer::sendCompleted()

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 11 00:17:47 2010
@@ -73,13 +73,13 @@
  * todo: turn this around, and put handlers in the authserver
  * class itself? */
 namespace {
-    AuthSrv *auth_server;
+AuthSrv *auth_server;
 #ifdef HAVE_BOOSTLIB
-    // TODO: this should be a property of AuthSrv, and AuthSrv needs
-    // a stop() method (so the shutdown command can be handled)
-    boost::asio::io_service io_service_;
+// TODO: this should be a property of AuthSrv, and AuthSrv needs
+// a stop() method (so the shutdown command can be handled)
+boost::asio::io_service io_service_;
 #else
-    bool running;
+bool running;
 #endif
 }
 
@@ -285,9 +285,11 @@
         }
     }
 
-    void sendCompleted(const boost::system::error_code& error,
-                       size_t bytes_sent)
-    {
+    void sendCompleted(const boost::system::error_code& error UNUSED_PARAM,
+                       size_t bytes_sent UNUSED_PARAM)
+    {
+        // Even if error occurred there's nothing to do.  Simply handle
+        // the next request.
         startReceive();
     }
 private:




More information about the bind10-changes mailing list