Commit 99522dd8 authored by Stephen Morris's avatar Stephen Morris

[trac1034] Update of message descriptions

parent 999736ef
......@@ -14,42 +14,43 @@
$NAMESPACE isc::asiodns
% ASIODNS_FETCH_COMPLETED upstream fetch to %1(%2) has now completed
% ASIODNS_FETCH_COMPLETED upstream fetch to %1(%2) has now completed
A debug message, this records that the upstream fetch (a query made by the
resolver on behalf of its client) to the specified address has completed.
% ASIODNS_FETCH_STOPPED upstream fetch to %1(%2) has been stopped
% ASIODNS_FETCH_STOPPED upstream fetch to %1(%2) has been stopped
An external component has requested the halting of an upstream fetch. This
is an allowed operation, and the message should only appear if debug is
enabled.
% ASIODNS_OPEN_SOCKET error %1 opening %2 socket to %3(%4)
% ASIODNS_OPEN_SOCKET error %1 opening %2 socket to %3(%4)
The asynchronous I/O code encountered an error when trying to open a socket
of the specified protocol in order to send a message to the target address.
The number of the system error that cause the problem is given in the
message.
% ASIODNS_READ_DATA error %1 reading %2 data from %3(%4)
% ASIODNS_READ_DATA error %1 reading %2 data from %3(%4)
The asynchronous I/O code encountered an error when trying to read data from
the specified address on the given protocol. The number of the system
error that cause the problem is given in the message.
% ASIODNS_SEND_DATA error %1 sending data using %2 to %3(%4)
The asynchronous I/O code encountered an error when trying send data to
the specified address on the given protocol. The the number of the system
error that cause the problem is given in the message.
% ASIODNS_READ_TIMEOUT receive timeout while waiting for data from %1(%2)
% ASIODNS_READ_TIMEOUT receive timeout while waiting for data from %1(%2)
An upstream fetch from the specified address timed out. This may happen for
any number of reasons and is most probably a problem at the remote server
or a problem on the network. The message will only appear if debug is
enabled.
% ASIODNS_UNKORIGIN unknown origin for ASIO error code %1 (protocol: %2, address %3)
This message should not appear and indicates an internal error if it does.
Please enter a bug report.
% ASIODNS_SEND_DATA error %1 sending data using %2 to %3(%4)
The asynchronous I/O code encountered an error when trying send data to
the specified address on the given protocol. The the number of the system
error that cause the problem is given in the message.
% ASIODNS_UNKNOWN_ORIGIN unknown origin for ASIO error code %1 (protocol: %2, address %3)
An internal consistency check on the origin of a message from the
asynchronous I/O module failed. This may indicate an internal error;
please submit a bug report.
% ASIODNS_UNKNOWN_RESULT unknown result (%1) when IOFetch::stop() was executed for I/O to %2(%3)
The termination method of the resolver's upstream fetch class was called with
an unknown result code (which is given in the message). This message should
not appear and may indicate an internal error. Please enter a bug report.
% ASIODNS_UNKNOWN_RESULT unknown result (%1) when IOFetch::stop() was executed for I/O to %2(%3)
An internal error indicating that the termination method of the resolver's
upstream fetch class was called with an unknown result code (which is
given in the message). Please submit a bug report.
......@@ -158,7 +158,7 @@ struct IOFetchData {
stopped(false),
timeout(wait),
packet(false),
origin(ASIODNS_UNKORIGIN),
origin(ASIODNS_UNKNOWN_ORIGIN),
staging(),
qid(QidGenerator::getInstance().generateQid())
{}
......@@ -329,7 +329,7 @@ IOFetch::operator()(asio::error_code ec, size_t length) {
// Finished with this socket, so close it. This will not generate an
// I/O error, but reset the origin to unknown in case we change this.
data_->origin = ASIODNS_UNKORIGIN;
data_->origin = ASIODNS_UNKNOWN_ORIGIN;
data_->socket->close();
/// We are done
......@@ -415,7 +415,7 @@ void IOFetch::logIOFailure(asio::error_code ec) {
assert((data_->origin == ASIODNS_OPEN_SOCKET) ||
(data_->origin == ASIODNS_SEND_DATA) ||
(data_->origin == ASIODNS_READ_DATA) ||
(data_->origin == ASIODNS_UNKORIGIN));
(data_->origin == ASIODNS_UNKNOWN_ORIGIN));
static const char* PROTOCOL[2] = {"TCP", "UDP"};
LOG_ERROR(logger, data_->origin).arg(ec.value()).
......
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