diff options
| author | Keith Wall <kwall@apache.org> | 2014-05-30 16:24:58 +0000 |
|---|---|---|
| committer | Keith Wall <kwall@apache.org> | 2014-05-30 16:24:58 +0000 |
| commit | df196f1d27e75b4f82a35e368406910be16c75c6 (patch) | |
| tree | 65564f8ac3f68153e2a601448a2ea5e2d14ac488 /qpid/cpp | |
| parent | 51c910379e88ec29a0dd6e5075af4af8441b497e (diff) | |
| download | qpid-python-df196f1d27e75b4f82a35e368406910be16c75c6.tar.gz | |
QPID-5795: [Java Broker] Prevent ConnectionAdapter leak when closing a messaging connection
The leak was due to the fact that nothing was telling the virtualhost to unregister the connection child (#unregisterChild)
when the connection was closed.
* Made ConnectionAdapter responsible for causing its own deletion (when the underlying connection is closed). The call to #deleted() causes the child
to be unregistered from its parent (preventing the leak)
* Removed the now unnecessary _connectionAdapters map from the VH. This needlessly duplicated information already held more generally by the ACO.
* Refactored SessionAdapter in sympathy with CA changes. SessionsAdapters where _not_ being leaked as the session implementation were already telling the model to delete.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1598658 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
0 files changed, 0 insertions, 0 deletions
