From 6f145c117cebc1c75e993ad67facd11b8363f3c9 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 12 May 2008 19:45:22 +0000 Subject: QPID-1052: Patch from Ted Ross This patch contains the following: 1) The session-id reported by the management API now matches the session.name in the session table 2) management.py API has a new callback for closed connections 3) qpid-tool uses the closed-connection handler to notify the user of a lost connection git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@655619 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/SessionManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/src/qpid/broker/SessionManager.cpp') diff --git a/cpp/src/qpid/broker/SessionManager.cpp b/cpp/src/qpid/broker/SessionManager.cpp index 6e235e32c3..d7bae737fc 100644 --- a/cpp/src/qpid/broker/SessionManager.cpp +++ b/cpp/src/qpid/broker/SessionManager.cpp @@ -46,11 +46,11 @@ SessionManager::~SessionManager() {} // FIXME aconway 2008-02-01: pass handler*, allow open unattached. std::auto_ptr SessionManager::open( - SessionHandler& h, uint32_t timeout_) + SessionHandler& h, uint32_t timeout_, std::string _name) { Mutex::ScopedLock l(lock); std::auto_ptr session( - new SessionState(this, &h, timeout_, ack)); + new SessionState(this, &h, timeout_, ack, _name)); active.insert(session->getId()); for_each(observers.begin(), observers.end(), boost::bind(&Observer::opened, _1,boost::ref(*session))); -- cgit v1.2.1