diff options
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/qpid/sys/posix/AsynchIO.cpp | 5 |
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 { |