summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/SessionState.cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2009-06-08 14:34:45 +0000
committerAndrew Stitcher <astitcher@apache.org>2009-06-08 14:34:45 +0000
commit4274737d8315848edc4fa0ccb534482202ce5658 (patch)
treeef8e34f05278aa13c2e41425156a3d5a6a08ffc2 /cpp/src/qpid/broker/SessionState.cpp
parenta811f1b32a6d3e1b9a39c36829ac6847ed6d8e42 (diff)
downloadqpid-python-4274737d8315848edc4fa0ccb534482202ce5658.tar.gz
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
Diffstat (limited to 'cpp/src/qpid/broker/SessionState.cpp')
-rw-r--r--cpp/src/qpid/broker/SessionState.cpp7
1 files changed, 6 insertions, 1 deletions
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");