diff options
author | Alan Conway <aconway@apache.org> | 2008-09-18 20:18:29 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2008-09-18 20:18:29 +0000 |
commit | b210ae04b88afa38238ca56e474ca60533f2768b (patch) | |
tree | 9caa01a04713bcc33a1a3b7cbbb4e84e96232713 /cpp/src/qpid/broker/Connection.cpp | |
parent | aedf627380016ebf210ea88029be8bd338ffc989 (diff) | |
download | qpid-python-b210ae04b88afa38238ca56e474ca60533f2768b.tar.gz |
Dump shared state to new cluster members.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@696788 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/Connection.cpp')
-rw-r--r-- | cpp/src/qpid/broker/Connection.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/Connection.cpp b/cpp/src/qpid/broker/Connection.cpp index dd62c8e6e8..ac4ec81cb9 100644 --- a/cpp/src/qpid/broker/Connection.cpp +++ b/cpp/src/qpid/broker/Connection.cpp @@ -26,6 +26,7 @@ #include "qpid/ptr_map.h" #include "qpid/framing/AMQP_ClientProxy.h" #include "qpid/agent/ManagementAgent.h" +#include "qpid/framing/enum.h" #include <boost/bind.hpp> #include <boost/ptr_container/ptr_vector.hpp> @@ -195,14 +196,14 @@ bool Connection::doOutput() { ioCallback = 0; if (mgmtClosing) - close(403, "Closed by Management Request", 0, 0); + close(execution::ERROR_CODE_UNAUTHORIZED_ACCESS, "Closed by Management Request", 0, 0); else //then do other output as needed: return outputTasks.doOutput(); }catch(ConnectionException& e){ close(e.code, e.getMessage(), 0, 0); }catch(std::exception& e){ - close(541/*internal error*/, e.what(), 0, 0); + close(execution::ERROR_CODE_INTERNAL_ERROR, e.what(), 0, 0); } return false; } |