]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1546] swapped comments about deferring asynchronous listening to cc messages.
authorJINMEI Tatuya <jinmei@isc.org>
Tue, 17 Jan 2012 17:47:05 +0000 (09:47 -0800)
committerJINMEI Tatuya <jinmei@isc.org>
Tue, 17 Jan 2012 17:47:05 +0000 (09:47 -0800)
the detailed version of comments were intended to be for auth, but placed
in the wrong place (resolver/main).

src/bin/auth/main.cc
src/bin/resolver/main.cc

index 6fdd255b36635536786b285fad9b2256ec66c78c..f6458829edbac2a12d483f28910712850410a7ea 100644 (file)
@@ -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);
index af187316c875411cc39d87106283fcb1dd52cf1a..2026e4e4051db6701fe4dd790acdc5e900a00678 100644 (file)
@@ -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);