Commit b502e251 authored by Evan Hunt's avatar Evan Hunt
Browse files

- 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
parent 6e231ad0
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment