summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2011-08-10 19:27:01 +0000
committerGordon Sim <gsim@apache.org>2011-08-10 19:27:01 +0000
commit8c75cb5d3abd16e28622d345e8baa877bd46c1d4 (patch)
treeea7bf200c3647ecc4a1cb0be5e016af06d1abb6f /qpid/cpp/src
parent12dcdfcc4e33b78c0f30d50a32b2943179a7a6a1 (diff)
downloadqpid-python-8c75cb5d3abd16e28622d345e8baa877bd46c1d4.tar.gz
QPID-3411: Restore x-reconnect-on-limit-exceeded option
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1156327 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qpid/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp b/qpid/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp
index 491d05a5dc..cc6e9b9ab2 100644
--- a/qpid/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp
+++ b/qpid/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp
@@ -132,6 +132,8 @@ void ConnectionImpl::setOption(const std::string& name, const Variant& value)
settings.protocol = value.asString();
} else if (name == "ssl-cert-name" || name == "ssl_cert_name") {
settings.sslCertName = value.asString();
+ } else if (name == "x-reconnect-on-limit-exceeded" || name == "x_reconnect_on_limit_exceeded") {
+ reconnectOnLimitExceeded = value;
} else {
throw qpid::messaging::MessagingException(QPID_MSG("Invalid option: " << name << " not recognised"));
}