diff options
| author | Gordon Sim <gsim@apache.org> | 2008-08-05 12:27:29 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2008-08-05 12:27:29 +0000 |
| commit | 29041dcd9c04b8bb01e50b114d3e5b168d339682 (patch) | |
| tree | e1f9e43322fe5229f01bef41500d91cc3b79ebce /cpp/src/qpid | |
| parent | 794e6f70dc0731bdbc176be32dfa3126a1ff45e0 (diff) | |
| download | qpid-python-29041dcd9c04b8bb01e50b114d3e5b168d339682.tar.gz | |
Merged r682685: 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/branches/qpid.0-10@682688 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid')
| -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 4eb6d0a3e7..01aaeefc9a 100644 --- a/cpp/src/qpid/sys/posix/AsynchIO.cpp +++ b/cpp/src/qpid/sys/posix/AsynchIO.cpp @@ -300,7 +300,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::strError(rc) << "(" << rc << ")" ); + eofCallback(*this); + h.unwatchRead(); + break; } } } else { |
