Browse Source

[1546] swapped comments about deferring asynchronous listening to cc messages.
the detailed version of comments were intended to be for auth, but placed
in the wrong place (resolver/main).

JINMEI Tatuya 13 years ago
parent
commit
354bb735d3
2 changed files with 7 additions and 6 deletions
  1. 6 1
      src/bin/auth/main.cc
  2. 1 5
      src/bin/resolver/main.cc

+ 6 - 1
src/bin/auth/main.cc

@@ -163,7 +163,12 @@ main(int argc, char* argv[]) {
         isc::server_common::initSocketRequestor(*cc_session);
 
         // We delay starting listening to new commands/config just before we
-        // go into the main loop.   See auth/main.cc for the rationale.
+        // go into the main loop to avoid confusion due to mixture of
+        // synchronous and asynchronous operations (this would happen in
+        // initial communication with the boss that takes place in
+        // updateConfig() for listen_on and in initializing TSIG keys below).
+        // Until then all operations on the CC session will take place
+        // synchronously.
         config_session = new ModuleCCSession(specfile, *cc_session,
                                              my_config_handler,
                                              my_command_handler, false);

+ 1 - 5
src/bin/resolver/main.cc

@@ -211,11 +211,7 @@ main(int argc, char* argv[]) {
         isc::server_common::initSocketRequestor(*cc_session);
 
         // We delay starting listening to new commands/config just before we
-        // go into the main loop to avoid confusion due to mixture of
-        // synchronous and asynchronous operations (this would happen in
-        // initial communication with the boss that takes place in
-        // updateConfig() for listen_on).  Until then all operations on the CC
-        // session will take place synchronously.
+        // go into the main loop.   See auth/main.cc for the rationale.
         config_session = new ModuleCCSession(specfile, *cc_session,
                                              my_config_handler,
                                              my_command_handler, false);