Browse Source

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

git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1307 e5f2f494-b856-4b98-b285-d166d9295462
JINMEI Tatuya 15 years ago
parent
commit
38db5558d9
1 changed files with 9 additions and 7 deletions
  1. 9 7
      src/bin/auth/main.cc

+ 9 - 7
src/bin/auth/main.cc

@@ -73,13 +73,13 @@ const char* DNSPORT = "5300";
  * todo: turn this around, and put handlers in the authserver
  * todo: turn this around, and put handlers in the authserver
  * class itself? */
  * class itself? */
 namespace {
 namespace {
-    AuthSrv *auth_server;
+AuthSrv *auth_server;
 #ifdef HAVE_BOOSTLIB
 #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
 #else
-    bool running;
+bool running;
 #endif
 #endif
 }
 }
 
 
@@ -285,9 +285,11 @@ public:
         }
         }
     }
     }
 
 
-    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();
         startReceive();
     }
     }
 private:
 private: