summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2010-01-21 06:13:19 +0000
committerAndrew Stitcher <astitcher@apache.org>2010-01-21 06:13:19 +0000
commit54e20edd9e6b6930b73023fc7fe28e2bfdfb004f (patch)
tree13a1e49e13a7eaebd373332b5c5b35dad3c1649a /cpp/src
parentf831756761b0281a044a7a04dc4c2692d9c20376 (diff)
downloadqpid-python-54e20edd9e6b6930b73023fc7fe28e2bfdfb004f.tar.gz
Log detailed error if unexpected socket write error (don't throw anymore)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@901545 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/sys/posix/AsynchIO.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/qpid/sys/posix/AsynchIO.cpp b/cpp/src/qpid/sys/posix/AsynchIO.cpp
index 67b5cf0534..61f10726f0 100644
--- a/cpp/src/qpid/sys/posix/AsynchIO.cpp
+++ b/cpp/src/qpid/sys/posix/AsynchIO.cpp
@@ -535,7 +535,10 @@ void AsynchIO::writeable(DispatchHandle& h) {
// we can carry on watching for writes
break;
} else {
- QPID_POSIX_CHECK(rc);
+ // Report error then just treat as a socket disconnect
+ QPID_LOG(error, "Error writing socket: " << qpid::sys::strError(errno) << "(" << errno << ")" );
+ h.unwatchWrite();
+ break;
}
}
} else {