You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2015/11/23 18:57:36 UTC
[08/50] [abbrv] qpid-proton git commit: PROTON-1035: ConnectionClosed
handler uses proper fields for signaling event. Before this patch:
AttributeError: 'ConnectionClosed' object has no attribute 'url' After this
patch: ConnectionClosed: Connection 0
PROTON-1035: ConnectionClosed handler uses proper fields for signaling event.
Before this patch:
AttributeError: 'ConnectionClosed' object has no attribute 'url'
After this patch:
ConnectionClosed: Connection 0.0.0.0:21002 closed due to:
Condition('amqp:resource-limit-exceeded', 'connection disallowed by local policy')
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/4f5e18a0
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/4f5e18a0
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/4f5e18a0
Branch: refs/heads/go1
Commit: 4f5e18a059d1e0ced5b5f3ae8c9fa4503dde43fc
Parents: 288070d
Author: Chuck Rolke <cr...@redhat.com>
Authored: Mon Nov 2 17:07:51 2015 -0500
Committer: Chuck Rolke <cr...@redhat.com>
Committed: Mon Nov 2 17:07:51 2015 -0500
----------------------------------------------------------------------
proton-c/bindings/python/proton/utils.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/4f5e18a0/proton-c/bindings/python/proton/utils.py
----------------------------------------------------------------------
diff --git a/proton-c/bindings/python/proton/utils.py b/proton-c/bindings/python/proton/utils.py
index 935a9d2..e1b084f 100644
--- a/proton-c/bindings/python/proton/utils.py
+++ b/proton-c/bindings/python/proton/utils.py
@@ -176,9 +176,9 @@ class LinkDetached(LinkException):
class ConnectionClosed(ConnectionException):
def __init__(self, connection):
self.connection = connection
- txt = "Connection %s closed" % self.url
- if event.connection.remote_condition:
- txt += " due to: %s" % event.connection.remote_condition
+ txt = "Connection %s closed" % connection.hostname
+ if connection.remote_condition:
+ txt += " due to: %s" % connection.remote_condition
self.condition = connection.remote_condition.name
else:
txt += " by peer"
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org