You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2017/08/15 19:55:43 UTC

qpid-dispatch git commit: DISPATCH-775: release connection from proactor when disconnected

Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 374053b62 -> f146cfcd5


DISPATCH-775: release connection from proactor when disconnected


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/f146cfcd
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/f146cfcd
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/f146cfcd

Branch: refs/heads/master
Commit: f146cfcd5be2a226c759fcacccac22b1704a8a06
Parents: 374053b
Author: Gordon Sim <gs...@redhat.com>
Authored: Tue Aug 15 20:55:24 2017 +0100
Committer: Gordon Sim <gs...@redhat.com>
Committed: Tue Aug 15 20:55:24 2017 +0100

----------------------------------------------------------------------
 src/remote_sasl.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/f146cfcd/src/remote_sasl.c
----------------------------------------------------------------------
diff --git a/src/remote_sasl.c b/src/remote_sasl.c
index 4ef5086..dbf11e2 100644
--- a/src/remote_sasl.c
+++ b/src/remote_sasl.c
@@ -414,7 +414,8 @@ void qdr_handle_authentication_service_connection_event(pn_event_t *e)
     } else if (pn_event_type(e) == PN_TRANSPORT_CLOSED) {
         pnx_sasl_logf(transport, "disconnected from authentication service");
         qdr_sasl_relay_t* impl = (qdr_sasl_relay_t*) pnx_sasl_get_context(transport);
-        if (!impl->downstream_released && impl->downstream) {
+        if (impl->downstream) {
+            pn_proactor_release_connection(impl->downstream);
             pn_connection_release(impl->downstream);
             impl->downstream = 0;
             pnx_sasl_logf(transport, "authentication service: downstream connection released");


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