diff options
author | Andrew Stitcher <astitcher@apache.org> | 2009-03-03 21:02:10 +0000 |
---|---|---|
committer | Andrew Stitcher <astitcher@apache.org> | 2009-03-03 21:02:10 +0000 |
commit | 5f34dd46b9269dd7d96a9f88b2cf7bd2f3e22d79 (patch) | |
tree | b242f2813d1ff66d9ddddf6a39292974a54c3530 /qpid/cpp/src | |
parent | d51bfdcf91766ae2a703bbc45c0c75439968bb9d (diff) | |
download | qpid-python-5f34dd46b9269dd7d96a9f88b2cf7bd2f3e22d79.tar.gz |
Correct Socket error reporting so that it gives a useful message
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@749752 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r-- | qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp b/qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp index a356a72650..9e2772e18a 100644 --- a/qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp +++ b/qpid/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; |