diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2010-01-21 06:13:19 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2010-01-21 06:13:19 +0000 |
| commit | bd78b67615f1b19fb57f429476580c3bf37615aa (patch) | |
| tree | 97742a7f6aa10721136fe2776fa89fb53f7dccb0 /qpid/cpp/src | |
| parent | 9a6f7e599e4f111d5971929425da5be321bbe86b (diff) | |
| download | qpid-python-bd78b67615f1b19fb57f429476580c3bf37615aa.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@901545 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
| -rw-r--r-- | qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp b/qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp index 67b5cf0534..61f10726f0 100644 --- a/qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp +++ b/qpid/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 { |
