summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/qmf/ResilientConnection.cpp
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2009-09-02 12:32:56 +0000
committerTed Ross <tross@apache.org>2009-09-02 12:32:56 +0000
commit93596b93d29ebcb76719a9e7a9e4793d4738dfed (patch)
tree199af52eab71373be7b5aca8433c9bb9251bd98e /qpid/cpp/src/qmf/ResilientConnection.cpp
parent840ec0fa37770ac7fa35ee5b0dd7c7b891198f31 (diff)
downloadqpid-python-93596b93d29ebcb76719a9e7a9e4793d4738dfed.tar.gz
More QMF implementation:
- Added schema handling and exchange to the console - Improved the connection performance by switching to pre-acquired mode git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@810482 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qmf/ResilientConnection.cpp')
-rw-r--r--qpid/cpp/src/qmf/ResilientConnection.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qpid/cpp/src/qmf/ResilientConnection.cpp b/qpid/cpp/src/qmf/ResilientConnection.cpp
index a6f9eddcde..df84003c0f 100644
--- a/qpid/cpp/src/qmf/ResilientConnection.cpp
+++ b/qpid/cpp/src/qmf/ResilientConnection.cpp
@@ -270,7 +270,10 @@ void ResilientConnectionImpl::declareQueue(SessionHandle handle, char* queue)
RCSession* sess = (RCSession*) handle.impl;
sess->session.queueDeclare(arg::queue=queue, arg::autoDelete=true, arg::exclusive=true);
+ sess->subscriptions->setAcceptMode(ACCEPT_MODE_NONE);
+ sess->subscriptions->setAcquireMode(ACQUIRE_MODE_PRE_ACQUIRED);
sess->subscriptions->subscribe(*sess, queue, queue);
+ sess->subscriptions->setFlowControl(queue, FlowControl::unlimited());
sess->dests.push_back(string(queue));
}