Commit 8320cc9d authored by Jelte Jansen's avatar Jelte Jansen

directly evaluate *read_result to see if there was an error


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac296@2752 e5f2f494-b856-4b98-b285-d166d9295462
parent ed14812f
......@@ -198,7 +198,8 @@ SessionImpl::readData(void* data, size_t datalen) {
}
}
if (read_result->value() != 0) {
// asio::error_code evaluates to false if there was no error
if (*read_result) {
if (*read_result == asio::error::operation_aborted) {
isc_throw(SessionTimeout,
"Timeout while reading data from cc session");
......
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