summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2009-03-03 21:02:10 +0000
committerAndrew Stitcher <astitcher@apache.org>2009-03-03 21:02:10 +0000
commitedeb221a23bb326cd8d058016cceb5a36d74966d (patch)
treeb8614598010d07a83eb7eddf3991f051e9806675 /cpp
parent62eb9dcb9d62e188946ed634286a838d91eebcb0 (diff)
downloadqpid-python-edeb221a23bb326cd8d058016cceb5a36d74966d.tar.gz
Correct Socket error reporting so that it gives a useful message
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749752 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/qpid/sys/posix/AsynchIO.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/sys/posix/AsynchIO.cpp b/cpp/src/qpid/sys/posix/AsynchIO.cpp
index a356a72650..9e2772e18a 100644
--- a/cpp/src/qpid/sys/posix/AsynchIO.cpp
+++ b/cpp/src/qpid/sys/posix/AsynchIO.cpp
@@ -474,7 +474,7 @@ void AsynchIO::readable(DispatchHandle& h) {
break;
} else {
// Report error then just treat as a socket disconnect
- QPID_LOG(error, "Error reading socket: " << qpid::sys::strError(rc) << "(" << rc << ")" );
+ QPID_LOG(error, "Error reading socket: " << qpid::sys::strError(errno) << "(" << errno << ")" );
eofCallback(*this);
h.unwatchRead();
break;