From 4274737d8315848edc4fa0ccb534482202ce5658 Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Mon, 8 Jun 2009 14:34:45 +0000 Subject: Plumbed in an a connection abort operation to the OutputHandler git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@782649 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/SessionState.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cpp/src/qpid/broker/SessionState.cpp') diff --git a/cpp/src/qpid/broker/SessionState.cpp b/cpp/src/qpid/broker/SessionState.cpp index 26a35f4a4f..f5e9139a76 100644 --- a/cpp/src/qpid/broker/SessionState.cpp +++ b/cpp/src/qpid/broker/SessionState.cpp @@ -134,6 +134,11 @@ void SessionState::attach(SessionHandler& h) { } } +void SessionState::abort() { + if (isAttached()) + getConnection().outputTasks.abort(); +} + void SessionState::activateOutput() { if (isAttached()) getConnection().outputTasks.activateOutput(); @@ -213,7 +218,7 @@ struct ScheduledCreditTask : public TimerTask { sessionState.getConnection().requestIOProcessing(boost::bind(&ScheduledCreditTask::sendCredit, this)); } } - + void sendCredit() { if ( !sessionState.processSendCredit(0) ) { QPID_LOG(warning, sessionState.getId() << ": Reschedule sending credit"); -- cgit v1.2.1