You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kp...@apache.org on 2020/03/12 16:27:31 UTC

[qpid-cpp] branch master updated: QPID-8425: Fix for channel leak on federation links

This is an automated email from the ASF dual-hosted git repository.

kpvdr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-cpp.git


The following commit(s) were added to refs/heads/master by this push:
     new 7923473  QPID-8425: Fix for channel leak on federation links
7923473 is described below

commit 79234737332c4605e2b5bd1e8e31ead45f81deca
Author: Kim van der Riet <kp...@apache.org>
AuthorDate: Thu Mar 12 12:26:11 2020 -0400

    QPID-8425: Fix for channel leak on federation links
---
 src/qpid/broker/Link.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/qpid/broker/Link.cpp b/src/qpid/broker/Link.cpp
index 14737e7..3dd8161 100644
--- a/src/qpid/broker/Link.cpp
+++ b/src/qpid/broker/Link.cpp
@@ -372,6 +372,10 @@ void Link::closed(int, std::string text)
             setStateLH(STATE_WAITING);
             mgmtObject->set_lastError (text);
         }
+
+        if (failover && failoverChannel > 0) {
+            returnChannel(failoverChannel);
+        }
     }
     if (isClosing) destroy();
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org