2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[1818] Report the error code when CC_ASYNC_READ_FAILED is logged

This commit is contained in:
Mukund Sivaraman
2012-04-12 13:55:45 +05:30
parent 22041b8ed4
commit c89bd8e38d
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@
$NAMESPACE isc::cc $NAMESPACE isc::cc
% CC_ASYNC_READ_FAILED asynchronous read failed % CC_ASYNC_READ_FAILED asynchronous read failed (error code = %1)
This marks a low level error, we tried to read data from the message queue This marks a low level error, we tried to read data from the message queue
daemon asynchronously, but the ASIO library returned an error. daemon asynchronously, but the ASIO library returned an error.

View File

@@ -249,7 +249,7 @@ SessionImpl::internalRead(const asio::error_code& error,
} }
user_handler_(); user_handler_();
} else { } else {
LOG_ERROR(logger, CC_ASYNC_READ_FAILED); LOG_ERROR(logger, CC_ASYNC_READ_FAILED).arg(error.value());
isc_throw(SessionError, "asynchronous read failed"); isc_throw(SessionError, "asynchronous read failed");
} }
} }