diff options
| author | Gordon Sim <gsim@apache.org> | 2007-10-31 18:47:28 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2007-10-31 18:47:28 +0000 |
| commit | 7990138bb3eb014c85bfb806c91e23def530ef37 (patch) | |
| tree | 50179d4837d87f9e7f079ca44088c383561c9a97 /cpp/src/qpid/broker/SessionHandler.h | |
| parent | ff6f9f47dbbaaf84dde2a86dd8f854fcf3060378 (diff) | |
| download | qpid-python-7990138bb3eb014c85bfb806c91e23def530ef37.tar.gz | |
Simple fix to prevent concurrent disconnection and sending of frames causing seg faults.
A more complete solution may follow.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@590786 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/SessionHandler.h')
| -rw-r--r-- | cpp/src/qpid/broker/SessionHandler.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/SessionHandler.h b/cpp/src/qpid/broker/SessionHandler.h index 52f64779d4..800b886bbf 100644 --- a/cpp/src/qpid/broker/SessionHandler.h +++ b/cpp/src/qpid/broker/SessionHandler.h @@ -27,6 +27,8 @@ #include "qpid/framing/AMQP_ClientProxy.h" #include "qpid/framing/amqp_types.h" #include "qpid/framing/ChannelHandler.h" +#include "qpid/sys/Mutex.h" +#include "qpid/sys/Semaphore.h" #include <boost/noncopyable.hpp> @@ -94,6 +96,7 @@ class SessionHandler : public framing::FrameHandler::InOutHandler, bool ignoring; bool resuming; std::auto_ptr<SessionState> session; + sys::Semaphore suspension; }; }} // namespace qpid::broker |
