diff options
| author | Alan Conway <aconway@apache.org> | 2009-06-30 20:51:38 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2009-06-30 20:51:38 +0000 |
| commit | 82091ce825923252d7a224ebf771be61e8dd15a2 (patch) | |
| tree | 71250d9c795c56447a23cb7ceef3db8d19c3ed0c /cpp/src/qpid/cluster/Connection.h | |
| parent | b9c6b3e4f92ca2398cca1dc59ca8fdbfc693762f (diff) | |
| download | qpid-python-82091ce825923252d7a224ebf771be61e8dd15a2.tar.gz | |
Fix cluster race condition with connections closed by broker while in use.
If a client is using a connection that is closed at the broker end
because of an error, there is a race condition that allows the
connection to be incorrectly re-created on replica brokers which can
cause those brokers to exit with an error that does not occur on the
directly connected broker.
The fix: explicitly announce new connections, shadow connections are no
longer implicitly created on first use. Make error-check a cluster
control so it can be handled independently of the lifecycle of the
connection where an error initially occured.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@789947 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/Connection.h')
| -rw-r--r-- | cpp/src/qpid/cluster/Connection.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/cluster/Connection.h b/cpp/src/qpid/cluster/Connection.h index 7f75d1e3dd..73856a3687 100644 --- a/cpp/src/qpid/cluster/Connection.h +++ b/cpp/src/qpid/cluster/Connection.h @@ -150,9 +150,9 @@ class Connection : void exchange(const std::string& encoded); void giveReadCredit(int credit); + void announce() {} // handled by Cluster. void abort(); void deliverClose(); - void errorCheck(uint8_t type, uint64_t frameSeq); OutputInterceptor& getOutput() { return output; } |
