summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client/ConnectionImpl.h
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2009-01-13 19:15:31 +0000
committerAndrew Stitcher <astitcher@apache.org>2009-01-13 19:15:31 +0000
commit766c218055567f4e387aab4678d8d1c840916465 (patch)
treea8caf1fc75a6505124b3e6d4ed3b36de5894f50c /cpp/src/qpid/client/ConnectionImpl.h
parent5fec8f487c510e2309b3bc939fea70078a11af97 (diff)
downloadqpid-python-766c218055567f4e387aab4678d8d1c840916465.tar.gz
Implement heartbeat timeout on client:
- The client shuts down a connection if it receives no traffic on it in 2 timeout periods git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@734221 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/ConnectionImpl.h')
-rw-r--r--cpp/src/qpid/client/ConnectionImpl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/qpid/client/ConnectionImpl.h b/cpp/src/qpid/client/ConnectionImpl.h
index 55a4929028..9385687238 100644
--- a/cpp/src/qpid/client/ConnectionImpl.h
+++ b/cpp/src/qpid/client/ConnectionImpl.h
@@ -61,6 +61,8 @@ class ConnectionImpl : public Bounds,
uint16_t nextChannel;
sys::Mutex lock;
+ boost::intrusive_ptr<qpid::sys::TimerTask> heartbeatTask;
+
template <class F> void closeInternal(const F&);
void incoming(framing::AMQFrame& frame);