From dc8808a8a1457021638a46e7611aa72adf7ada3d Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Tue, 5 Aug 2008 12:14:31 +0000 Subject: 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 --- cpp/src/qpid/sys/posix/AsynchIO.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cpp/src') 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 { -- cgit v1.2.1