diff options
author | Andrew Stitcher <astitcher@apache.org> | 2008-08-05 12:14:31 +0000 |
---|---|---|
committer | Andrew Stitcher <astitcher@apache.org> | 2008-08-05 12:14:31 +0000 |
commit | dc8808a8a1457021638a46e7611aa72adf7ada3d (patch) | |
tree | 1c1c8e6b7527fa818ff32b584c8a8461cf1989e5 /cpp | |
parent | 5a245b5b3b7e787a2163bd782d67e94d255a9957 (diff) | |
download | qpid-python-dc8808a8a1457021638a46e7611aa72adf7ada3d.tar.gz |
Modified error checking on TCP socket read so that it's no longer fatal
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@682685 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/qpid/sys/posix/AsynchIO.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/qpid/sys/posix/AsynchIO.cpp b/cpp/src/qpid/sys/posix/AsynchIO.cpp index 2d9bdbd3d8..7598eefe83 100644 --- a/cpp/src/qpid/sys/posix/AsynchIO.cpp +++ b/cpp/src/qpid/sys/posix/AsynchIO.cpp @@ -302,7 +302,11 @@ void AsynchIO::readable(DispatchHandle& h) { // we can carry on watching for reads break; } else { - QPID_POSIX_CHECK(rc); + // Report error then just treat as a socket disconnect + QPID_LOG(error, "Error reading socket: " << qpid::sys::strError(rc) << "(" << rc << ")" ); + eofCallback(*this); + h.unwatchRead(); + break; } } } else { |