Uploaded image for project: 'AMQ Clients'
  1. AMQ Clients
  2. ENTMQCL-572

proton-python recv doesn't end when receiving messages

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 1.1.0-GA, 1.2.0.GA
    • amqp-python-client
    • None
    • Hide
      1. Install broker amq7.0.3 or amq7.1.0, and start
      2. install proton-python 0.18
      3. run python simple_send.py -a "amqp://localhost:5672/example" -m 5
      4. run PN_TRACE_FRM=1 python simple_recv.py -a "amqp://localhost:5672/example" -m 10
      5. run python simple_send.py -a "amqp://localhost:5672/example" -m 5
      Show
      Install broker amq7.0.3 or amq7.1.0, and start install proton-python 0.18 run python simple_send.py -a "amqp://localhost:5672/example" -m 5 run PN_TRACE_FRM=1 python simple_recv.py -a "amqp://localhost:5672/example" -m 10 run python simple_send.py -a "amqp://localhost:5672/example" -m 5

    Description

      Python receiver doesn't close connection when sender sent messages to queue, receiver attach to queue, and sender start sending rest of messages.

      [0x25fd470]:  -> SASL
      [0x25fd470]:  <- SASL
      [0x25fd470]:0 <- @sasl-mechanisms(64) [sasl-server-mechanisms=@PN_SYMBOL[:PLAIN, :ANONYMOUS]]
      [0x25fd470]:0 -> @sasl-init(65) [mechanism=:ANONYMOUS, initial-response=b"anonymous@dhcp-144-169.lab.eng.brq.redhat.com"]
      [0x25fd470]:0 <- @sasl-outcome(68) [code=0]
      [0x25fd470]:  -> AMQP
      [0x25fd470]:0 -> @open(16) [container-id="9c99afb2-d4dc-48b4-878a-2d5e0d500207", hostname="localhost", channel-max=32767]
      [0x25fd470]:0 -> @begin(17) [next-outgoing-id=0, incoming-window=2147483647, outgoing-window=2147483647]
      [0x25fd470]:0 -> @attach(18) [name="9c99afb2-d4dc-48b4-878a-2d5e0d500207-example", handle=0, role=true, snd-settle-mode=2, rcv-settle-mode=0, source=@source(40) [address="example", durable=0, timeout=0, dynamic=false], target=@target(41) [durable=0, timeout=0, dynamic=false], initial-delivery-count=0, max-message-size=0]
      [0x25fd470]:0 -> @flow(19) [incoming-window=2147483647, next-outgoing-id=0, outgoing-window=2147483647, handle=0, delivery-count=0, link-credit=10, drain=false]
      [0x25fd470]:  <- AMQP
      [0x25fd470]:0 <- @open(16) [container-id="0.0.0.0", max-frame-size=4294967295, channel-max=65535, idle-time-out=30000, offered-capabilities=@PN_SYMBOL[:"sole-connection-for-container", :"DELAYED_DELIVERY", :"SHARED-SUBS", :"ANONYMOUS-RELAY"], properties={:product="apache-activemq-artemis", :version="2.0.0.amq-700013-redhat-1"}]
      [0x25fd470]:0 <- @begin(17) [remote-channel=0, next-outgoing-id=1, incoming-window=2147483647, outgoing-window=2147483647, handle-max=65535]
      [0x25fd470]:0 <- @attach(18) [name="9c99afb2-d4dc-48b4-878a-2d5e0d500207-example", handle=0, role=false, snd-settle-mode=2, rcv-settle-mode=0, source=@source(40) [address="example"], target=@target(41) [], incomplete-unsettled=false, initial-delivery-count=0]
      [0x25fd470]:0 <- @transfer(20) [handle=0, delivery-id=0, delivery-tag=b"0", message-format=0] (79) "\x00Sp\xc0\x07\x05BP\x04@BC\x00Ss\xd0\x00\x00\x00#\x00\x00\x00\x0dS\x01@@@@@@@\x83\x00\x00\x00\x00\x00\x00\x00\x00\x83\x00\x00\x00\x00\x00\x00\x00\x00@R\x00@\x00Sw\xd1\x00\x00\x00\x10\x00\x00\x00\x02\xa1\x08sequenceT\x01"
      [0x25fd470]:0 <- @transfer(20) [handle=0, delivery-id=1, delivery-tag=b"1", message-format=0] (79) "\x00Sp\xc0\x07\x05BP\x04@BC\x00Ss\xd0\x00\x00\x00#\x00\x00\x00\x0dS\x02@@@@@@@\x83\x00\x00\x00\x00\x00\x00\x00\x00\x83\x00\x00\x00\x00\x00\x00\x00\x00@R\x00@\x00Sw\xd1\x00\x00\x00\x10\x00\x00\x00\x02\xa1\x08sequenceT\x02"
      [0x25fd470]:0 <- @transfer(20) [handle=0, delivery-id=2, delivery-tag=b"2", message-format=0] (79) "\x00Sp\xc0\x07\x05BP\x04@BC\x00Ss\xd0\x00\x00\x00#\x00\x00\x00\x0dS\x03@@@@@@@\x83\x00\x00\x00\x00\x00\x00\x00\x00\x83\x00\x00\x00\x00\x00\x00\x00\x00@R\x00@\x00Sw\xd1\x00\x00\x00\x10\x00\x00\x00\x02\xa1\x08sequenceT\x03"
      {u'sequence': int32(1)}
      {u'sequence': int32(2)}
      {u'sequence': int32(3)}
      [0x25fd470]:0 -> @flow(19) [next-incoming-id=4, incoming-window=2147483647, next-outgoing-id=0, outgoing-window=2147483647, handle=0, delivery-count=3, link-credit=9, drain=false]
      [0x25fd470]:0 -> @disposition(21) [role=true, first=0, last=2, settled=true, state=@accepted(36) []]
      [0x25fd470]:0 <- @transfer(20) [handle=0, delivery-id=3, delivery-tag=b"3", message-format=0] (79) "\x00Sp\xc0\x07\x05BP\x04@BC\x00Ss\xd0\x00\x00\x00#\x00\x00\x00\x0dS\x04@@@@@@@\x83\x00\x00\x00\x00\x00\x00\x00\x00\x83\x00\x00\x00\x00\x00\x00\x00\x00@R\x00@\x00Sw\xd1\x00\x00\x00\x10\x00\x00\x00\x02\xa1\x08sequenceT\x04"
      [0x25fd470]:0 <- @transfer(20) [handle=0, delivery-id=4, delivery-tag=b"4", message-format=0] (79) "\x00Sp\xc0\x07\x05BP\x04@BC\x00Ss\xd0\x00\x00\x00#\x00\x00\x00\x0dS\x05@@@@@@@\x83\x00\x00\x00\x00\x00\x00\x00\x00\x83\x00\x00\x00\x00\x00\x00\x00\x00@R\x00@\x00Sw\xd1\x00\x00\x00\x10\x00\x00\x00\x02\xa1\x08sequenceT\x05"
      {u'sequence': int32(4)}
      {u'sequence': int32(5)}
      [0x25fd470]:0 -> @flow(19) [next-incoming-id=6, incoming-window=2147483647, next-outgoing-id=0, outgoing-window=2147483647, handle=0, delivery-count=5, link-credit=9, drain=false]
      [0x25fd470]:0 -> @disposition(21) [role=true, first=3, last=4, settled=true, state=@accepted(36) []]
      [0x25fd470]:0 <- @transfer(20) [handle=0, delivery-id=5, delivery-tag=b"5", message-format=0] (79) "\x00Sp\xc0\x07\x05BP\x04@BC\x00Ss\xd0\x00\x00\x00#\x00\x00\x00\x0dS\x01@@@@@@@\x83\x00\x00\x00\x00\x00\x00\x00\x00\x83\x00\x00\x00\x00\x00\x00\x00\x00@R\x00@\x00Sw\xd1\x00\x00\x00\x10\x00\x00\x00\x02\xa1\x08sequenceT\x01"
      [0x25fd470]:0 -> @flow(19) [next-incoming-id=7, incoming-window=2147483647, next-outgoing-id=0, outgoing-window=2147483647, handle=0, delivery-count=6, link-credit=9, drain=false]
      [0x25fd470]:0 -> @disposition(21) [role=true, first=5, last=5, settled=true, state=@accepted(36) []]
      [0x25fd470]:0 <- @transfer(20) [handle=0, delivery-id=6, delivery-tag=b"6", message-format=0] (79) "\x00Sp\xc0\x07\x05BP\x04@BC\x00Ss\xd0\x00\x00\x00#\x00\x00\x00\x0dS\x02@@@@@@@\x83\x00\x00\x00\x00\x00\x00\x00\x00\x83\x00\x00\x00\x00\x00\x00\x00\x00@R\x00@\x00Sw\xd1\x00\x00\x00\x10\x00\x00\x00\x02\xa1\x08sequenceT\x02"
      [0x25fd470]:0 <- @transfer(20) [handle=0, delivery-id=7, delivery-tag=b"7", message-format=0] (79) "\x00Sp\xc0\x07\x05BP\x04@BC\x00Ss\xd0\x00\x00\x00#\x00\x00\x00\x0dS\x03@@@@@@@\x83\x00\x00\x00\x00\x00\x00\x00\x00\x83\x00\x00\x00\x00\x00\x00\x00\x00@R\x00@\x00Sw\xd1\x00\x00\x00\x10\x00\x00\x00\x02\xa1\x08sequenceT\x03"
      [0x25fd470]:0 <- @transfer(20) [handle=0, delivery-id=8, delivery-tag=b"8", message-format=0] (79) "\x00Sp\xc0\x07\x05BP\x04@BC\x00Ss\xd0\x00\x00\x00#\x00\x00\x00\x0dS\x04@@@@@@@\x83\x00\x00\x00\x00\x00\x00\x00\x00\x83\x00\x00\x00\x00\x00\x00\x00\x00@R\x00@\x00Sw\xd1\x00\x00\x00\x10\x00\x00\x00\x02\xa1\x08sequenceT\x04"
      [0x25fd470]:0 <- @transfer(20) [handle=0, delivery-id=9, delivery-tag=b"9", message-format=0] (79) "\x00Sp\xc0\x07\x05BP\x04@BC\x00Ss\xd0\x00\x00\x00#\x00\x00\x00\x0dS\x05@@@@@@@\x83\x00\x00\x00\x00\x00\x00\x00\x00\x83\x00\x00\x00\x00\x00\x00\x00\x00@R\x00@\x00Sw\xd1\x00\x00\x00\x10\x00\x00\x00\x02\xa1\x08sequenceT\x05"
      {u'sequence': int32(5)}
      [0x25fd470]:0 -> @flow(19) [next-incoming-id=11, incoming-window=2147483647, next-outgoing-id=0, outgoing-window=2147483647, handle=0, delivery-count=10, link-credit=9, drain=false]
      [0x25fd470]:0 -> @disposition(21) [role=true, first=6, last=9, settled=true, state=@accepted(36) []]
      

      Attachments

        Activity

          People

            jross@redhat.com Justin Ross
            dkornel@redhat.com David Kornel
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: