diff options
author | Alan Conway <aconway@apache.org> | 2009-02-04 21:31:23 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2009-02-04 21:31:23 +0000 |
commit | 3de263a28e2421bb916e1da0cf0f09881801785c (patch) | |
tree | 9f809de1dc1ab5694a38e0f6a94b7f19711bf2dc /cpp/src/qpid/cluster/ConnectionMap.h | |
parent | 5b50014477ef0b9096c017af8fb85ac5693e673e (diff) | |
download | qpid-python-3de263a28e2421bb916e1da0cf0f09881801785c.tar.gz |
Fix race condition with deleted local connections.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@740900 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/ConnectionMap.h')
-rw-r--r-- | cpp/src/qpid/cluster/ConnectionMap.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/qpid/cluster/ConnectionMap.h b/cpp/src/qpid/cluster/ConnectionMap.h index 23084796cf..c5437eb84a 100644 --- a/cpp/src/qpid/cluster/ConnectionMap.h +++ b/cpp/src/qpid/cluster/ConnectionMap.h @@ -55,7 +55,9 @@ class ConnectionMap { /** Erase a closed connection. Called in deliver thread. */ void erase(const ConnectionId& id); - /** Get an existing connection. */ + /** Get an existing connection. Returns 0 if id is a closed local + * connections, frames for closed connections should be ignored. + */ ConnectionPtr get(const ConnectionId& id); /** Get connections for sending an update. */ |