This is an automated email from the ASF dual-hosted git repository.
astitcher pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git
The following commit(s) were added to refs/heads/main by this push:
new f03e4bdae PROTON-2754: Fix python example broker to offer
ANONYMOUS-RELAY
f03e4bdae is described below
commit f03e4bdae582763d0318f8a497edf272b769b10d
Author: Andrew Stitcher <[email protected]>
AuthorDate: Fri Jul 14 13:13:34 2023 -0400
PROTON-2754: Fix python example broker to offer ANONYMOUS-RELAY
The broker supports ANONYMOUS-RELAY so it should offer the capability in
its open frame.
---
python/examples/broker.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/python/examples/broker.py b/python/examples/broker.py
index 0f2e8892b..d15ad506b 100755
--- a/python/examples/broker.py
+++ b/python/examples/broker.py
@@ -82,6 +82,9 @@ class Broker(MessagingHandler):
self.queues[address] = Queue()
return self.queues[address]
+ def on_connection_opening(self, event):
+ event.connection.offered_capabilities = 'ANONYMOUS-RELAY'
+
def on_link_opening(self, event):
if event.link.is_sender:
if event.link.remote_source.dynamic:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]