qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ganesh Murthy (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PROTON-1927) Python _reactor.py creates duplicate link names for senders/receivers
Date Tue, 11 Sep 2018 15:04:00 GMT

    [ https://issues.apache.org/jira/browse/PROTON-1927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16610759#comment-16610759

Ganesh Murthy commented on PROTON-1927:

if you called "create_receiver(conn, self.address)" twice, or "create_sender(conn, self.address)"
twice, the *second* call will not create a new sender or receiver since the previous call
already did.


For examplke

r1 = .create_receiver(conn, self.address)

r2 = .create_receiver(conn, self.address)

In the above case r1 and r2 are the same.


To create two distinct receivers you need to use the *name* parameter

r1 = .create_receiver(conn, self.address, name="r1")

r2 = .create_receiver(conn, self.address, name="r2")

In this case r1 and r2 are two distinct receivers and the link names are distinct too.




> Python _reactor.py creates duplicate link names for senders/receivers
> ---------------------------------------------------------------------
>                 Key: PROTON-1927
>                 URL: https://issues.apache.org/jira/browse/PROTON-1927
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: python-binding
>    Affects Versions: proton-c-0.24.0
>            Reporter: Chuck Rolke
>            Priority: Major
> From DISPATCH-1114
> Creating a sender and a receiver in the same container produces duplicate link names.
Try python/examples/helloworld.py that executes:
>         event.container.create_receiver(conn, self.address)
>         event.container.create_sender(conn, self.address)
> generates the same link name for each attach:
> (M=a1b7d *1 ?3) chug@ratchet examples> PN_TRACE_FRM=1 ./helloworld.py
> ...
> [0x55a01066d9a0]:0 -> @attach(18) [name="70ceeac8-50d8-4af2-9caf-20ef8700a7d3-examples",
handle=0, role=true, snd-settle-mode=2, rcv-settle-mode=0, source=@source(40) [address="examples",
durable=0, timeout=0, dynamic=false], target=@target(41) [durable=0, timeout=0, dynamic=false],
initial-delivery-count=0, max-message-size=0]
> [0x55a01066d9a0]:0 -> @attach(18) [name="70ceeac8-50d8-4af2-9caf-20ef8700a7d3-examples",
handle=1, role=false, snd-settle-mode=2, rcv-settle-mode=0, source=@source(40) [durable=0,
timeout=0, dynamic=false], target=@target(41) [address="examples", durable=0, timeout=0, dynamic=false],
initial-delivery-count=0, max-message-size=0]

This message was sent by Atlassian JIRA

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

View raw message