qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astitc...@apache.org
Subject qpid-proton git commit: PROTON-1566: [C++ binding] Make sure we close connection after getting connection forced
Date Wed, 06 Sep 2017 15:18:53 GMT
Repository: qpid-proton
Updated Branches:
  refs/heads/master 9b2208030 -> 28ac86c45


PROTON-1566: [C++ binding] Make sure we close connection after getting connection forced


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

Branch: refs/heads/master
Commit: 28ac86c459b343fe36a0550d6844dafa0fe74f83
Parents: 9b22080
Author: Andrew Stitcher <astitcher@apache.org>
Authored: Wed Sep 6 11:15:54 2017 -0400
Committer: Andrew Stitcher <astitcher@apache.org>
Committed: Wed Sep 6 11:15:54 2017 -0400

----------------------------------------------------------------------
 proton-c/bindings/cpp/src/messaging_adapter.cpp | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/28ac86c4/proton-c/bindings/cpp/src/messaging_adapter.cpp
----------------------------------------------------------------------
diff --git a/proton-c/bindings/cpp/src/messaging_adapter.cpp b/proton-c/bindings/cpp/src/messaging_adapter.cpp
index 0fcf6fc..dea96bf 100644
--- a/proton-c/bindings/cpp/src/messaging_adapter.cpp
+++ b/proton-c/bindings/cpp/src/messaging_adapter.cpp
@@ -229,6 +229,7 @@ void on_connection_remote_close(messaging_handler& handler, pn_event_t*
event) {
     // events. This allows reconnection to happen transparently in this case
     if (pn_condition_is_set(cond)
         && !strcmp(pn_condition_get_name(cond),"amqp:connection:forced")) {
+        pn_connection_close(conn);
         return;
     }
 


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


Mime
View raw message