Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-401

Ordering issue prevents credit drain from working properly

    Details

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

      Description

      If the sending link calls pn_link_drained() to indicate that it has send all pending data, and afterwards it receives a Flow frame with drain=true from the peer, then the drain never completes.

      The ordering is the problem: if the flow frame w/drain=true is received BEFORE the sender calls pn_link_drained(), then it works.

        Attachments

        1. drain-hack.patch
          3 kB
          Ken Giusti
        2. drain-error.patch
          2 kB
          Ken Giusti

          Issue Links

            Activity

              People

              • Assignee:
                rhs Rafael H. Schloming
                Reporter:
                kgiusti Ken Giusti
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: