couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Dionne (JIRA)" <j...@apache.org>
Subject [jira] [Created] (COUCHDB-1583) improve the flow control in ibrowse streams
Date Wed, 31 Oct 2012 16:25:13 GMT
Bob Dionne created COUCHDB-1583:
-----------------------------------

             Summary: improve the flow control in ibrowse streams
                 Key: COUCHDB-1583
                 URL: https://issues.apache.org/jira/browse/COUCHDB-1583
             Project: CouchDB
          Issue Type: Improvement
          Components: Replication
            Reporter: Bob Dionne
            Assignee: Adam Kocoloski
             Fix For: 1.3


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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message