Qpid Proton
  1. Qpid Proton
  2. PROTON-350

Messenger - pn_messenger_recv( -1 ) does not flow control senders

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.4
    • Fix Version/s: 0.5
    • Component/s: proton-c
    • Labels:
      None

      Description

      When using pn_messenger_recv( -1 ), remote senders are not back-pressured, and the number of messages received can grow without bounds. It appears that messenger is unconditionally granting credit as messages arrive.

      Messenger should instead only replenish credit when received messages are actually consumed by the application (maybe after they are settled?).

      1. test-recv.py
        1 kB
        Ken Giusti

        Activity

        Ken Giusti created issue -
        Ken Giusti made changes -
        Field Original Value New Value
        Attachment test-recv.py [ 12591904 ]
        Ken Giusti made changes -
        Assignee Ken Giusti [ kgiusti ]
        Rafael H. Schloming made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Ken Giusti
            Reporter:
            Ken Giusti
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development