diff options
| author | Gordon Sim <gsim@apache.org> | 2008-03-03 19:19:00 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2008-03-03 19:19:00 +0000 |
| commit | 1f0b710ec149075c369624fa140a2af550ec0a5f (patch) | |
| tree | ac1d73e9e82d11ccaf8e6061431ecc311564ab9a /cpp/src/qpid/broker/SessionState.cpp | |
| parent | a711889b0b3c16d7bffe008ece53cd41d5069909 (diff) | |
| download | qpid-python-1f0b710ec149075c369624fa140a2af550ec0a5f.tar.gz | |
Updated tracking of outgoing command id and send command-point control on session attachment.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@633241 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/SessionState.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/SessionState.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/qpid/broker/SessionState.cpp b/cpp/src/qpid/broker/SessionState.cpp index 5f04136444..571b8848ae 100644 --- a/cpp/src/qpid/broker/SessionState.cpp +++ b/cpp/src/qpid/broker/SessionState.cpp @@ -170,7 +170,7 @@ Manageable::status_t SessionState::ManagementMethod (uint32_t methodId, void SessionState::handleCommand(framing::AMQMethodBody* method) { - SequenceNumber id = next++; + SequenceNumber id = nextIn++; Invoker::Result invocation = invoke(adapter, *method); completed.add(id); @@ -189,7 +189,7 @@ void SessionState::handleContent(AMQFrame& frame) { intrusive_ptr<Message> msg(msgBuilder.getMessage()); if (!msg) {//start of frameset will be indicated by frame flags - SequenceNumber id = next++; + SequenceNumber id = nextIn++; msgBuilder.start(id); msg = msgBuilder.getMessage(); } @@ -225,8 +225,8 @@ void SessionState::handle(AMQFrame& frame) DeliveryId SessionState::deliver(QueuedMessage& msg, DeliveryToken::shared_ptr token) { uint32_t maxFrameSize = getConnection().getFrameMax(); - MessageDelivery::deliver(msg, getProxy().getHandler(), ++outgoing.hwm, token, maxFrameSize); - return outgoing.hwm; + MessageDelivery::deliver(msg, getProxy().getHandler(), nextOut, token, maxFrameSize); + return nextOut++; } void SessionState::sendCompletion() |
