summaryrefslogtreecommitdiff
path: root/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
commita9515d587987bb45fea03809af401df28689c63a (patch)
tree2026b547cc2e94765cdcbc26d2dbc8b870b44ab5 /cpp/src
parent6f8bd706eb058d72a2d66128ac5ed7b2568143ee (diff)
downloadqpid-python-a9515d587987bb45fea03809af401df28689c63a.tar.gz
QPID-3411: Restore x-reconnect-on-limit-exceeded option
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1156327 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp b/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp
index 491d05a5dc..cc6e9b9ab2 100644
--- a/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp
+++ b/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"));
}