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/SessionHandler.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/SessionHandler.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/SessionHandler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/SessionHandler.cpp b/cpp/src/qpid/broker/SessionHandler.cpp index de96ae3f12..919a3e6ee8 100644 --- a/cpp/src/qpid/broker/SessionHandler.cpp +++ b/cpp/src/qpid/broker/SessionHandler.cpp @@ -126,6 +126,7 @@ void SessionHandler::attach(const std::string& name, bool /*force*/) connection.broker.getSessionManager().open(*this, 0)); session.reset(state.release()); peerSession.attached(name); + peerSession.commandPoint(session->nextOut, 0); } void SessionHandler::attached(const std::string& /*name*/) @@ -171,7 +172,7 @@ void SessionHandler::commandPoint(const framing::SequenceNumber& id, uint64_t of { if (offset) throw NotImplementedException("Non-zero byte offset not yet supported for command-point"); - session->next = id; + session->nextIn = id; } void SessionHandler::expected(const framing::SequenceSet& commands, const framing::Array& fragments) @@ -203,7 +204,7 @@ void SessionHandler::knownCompleted(const framing::SequenceSet& commands) void SessionHandler::flush(bool expected, bool confirmed, bool completed) { if (expected) { - peerSession.expected(SequenceSet(session->next), Array()); + peerSession.expected(SequenceSet(session->nextIn), Array()); } if (confirmed) { peerSession.confirmed(session->completed, Array()); |
