Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-1583

improve the flow control in ibrowse streams

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3
    • Component/s: Replication
    • Labels:
      None
    • Skill Level:
      Guru Level (Everyone buy this person a beer at the next conference!)

      Description

      The flow control in ibrowse's async response streams is tricky. We call
      stream_next to pull more data off the socket, but it seems that ibrowse
      will sometimes split that data into multiple messages. If we call
      stream_next for each message we process we end up with an overflowing
      mailbox.

      This commit[1] changes the consumer so that it clears out the mailbox before
      calling stream_next.

      [1] 8ccf696f833a0f0a453d

        Attachments

          Activity

            People

            • Assignee:
              kocolosk Adam Kocoloski
              Reporter:
              dionne Bob Dionne
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: