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 | e9e8cd65b35a37df0c79bc6d60b37c11fb7591a0 (patch) | |
| tree | 7f5ea0fb9c57b24189f8a7ce7844646cf521f34f /qpid/cpp/src | |
| parent | 30102c08501c25704eb0e03c392c487b5e92b8d0 (diff) | |
| download | qpid-python-e9e8cd65b35a37df0c79bc6d60b37c11fb7591a0.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@682685 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
| -rw-r--r-- | qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp b/qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp index 2d9bdbd3d8..7598eefe83 100644 --- a/qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp +++ b/qpid/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 { |
