diff options
| author | Ted Ross <tross@apache.org> | 2009-09-02 14:45:33 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2009-09-02 14:45:33 +0000 |
| commit | a27ba1f49c2886efac51498683f905e8405b5126 (patch) | |
| tree | dc5e9fed327a93d1a5e9f4573d6b6c0e21695c3f /cpp/src | |
| parent | 4ab8745255dad1cfaf3f69f782d721ace36ff0fc (diff) | |
| download | qpid-python-a27ba1f49c2886efac51498683f905e8405b5126.tar.gz | |
Fixed a race condition whereby the connection thread sometimes read the value of
"delayMin" before it was initialized by the constructor.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@810532 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
| -rw-r--r-- | cpp/src/qmf/ResilientConnection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qmf/ResilientConnection.cpp b/cpp/src/qmf/ResilientConnection.cpp index df84003c0f..623bec35c4 100644 --- a/cpp/src/qmf/ResilientConnection.cpp +++ b/cpp/src/qmf/ResilientConnection.cpp @@ -176,7 +176,7 @@ void RCSession::received(qpid::client::Message& msg) } ResilientConnectionImpl::ResilientConnectionImpl(const ConnectionSettings& _settings) : - notifyFd(-1), connected(false), shutdown(false), settings(_settings), connThread(*this) + notifyFd(-1), connected(false), shutdown(false), settings(_settings), delayMin(1), connThread(*this) { connection.registerFailureCallback(boost::bind(&ResilientConnectionImpl::failure, this)); settings.impl->getRetrySettings(&delayMin, &delayMax, &delayFactor); |
