Browse Source

- add checks for queued config commands to ASIO query processing loop

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac168@1982 e5f2f494-b856-4b98-b285-d166d9295462
Evan Hunt 15 years ago
parent
commit
b502e251cb
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/bin/auth/asio_link.cc

+ 8 - 0
src/bin/auth/asio_link.cc

@@ -100,6 +100,10 @@ public:
     {}
 
     void start() {
+        // Check for queued configuration commands
+        if (auth_server_->configSession()->hasQueuedMsgs()) {
+            auth_server_->configSession()->checkCommand();
+        }
         async_read(socket_, asio::buffer(data_, TCP_MESSAGE_LENGTHSIZE),
                    boost::bind(&TCPClient::headerRead, this,
                                placeholders::error,
@@ -263,6 +267,10 @@ public:
     void handleRequest(const asio::error_code& error,
                        size_t bytes_recvd)
     {
+        // Check for queued configuration commands
+        if (auth_server_->configSession()->hasQueuedMsgs()) {
+            auth_server_->configSession()->checkCommand();
+        }
         if (!error && bytes_recvd > 0) {
             InputBuffer request_buffer(data_, bytes_recvd);