From b210ae04b88afa38238ca56e474ca60533f2768b Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 18 Sep 2008 20:18:29 +0000 Subject: 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 --- cpp/src/qpid/broker/Connection.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cpp/src/qpid/broker/Connection.cpp') 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 #include @@ -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; } -- cgit v1.2.1