From 2de0473cf8c64e06396c5f5e6a0cf8b5e982514e Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Thu, 6 Nov 2008 22:08:14 +0000 Subject: Restrict connection close codes to the set defined in the spec git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@711989 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/cluster/Connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src/qpid/cluster') diff --git a/cpp/src/qpid/cluster/Connection.cpp b/cpp/src/qpid/cluster/Connection.cpp index bcdc4ffe27..ddfba03850 100644 --- a/cpp/src/qpid/cluster/Connection.cpp +++ b/cpp/src/qpid/cluster/Connection.cpp @@ -125,7 +125,7 @@ bool Connection::checkUnsupported(const AMQBody& body) { if (dp && dp->getTtl()) message = "Message TTL is not currently supported by cluster."; } if (!message.empty()) - connection.close(connection::CLOSE_CODE_FRAMING_ERROR, message, 0, 0); + connection.close(connection::CLOSE_CODE_FRAMING_ERROR, message); return !message.empty(); } -- cgit v1.2.1