[
https://issues.apache.org/jira/browse/DISPATCH-1947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17282631#comment-17282631
]
Charles E. Rolke commented on DISPATCH-1947:
--------------------------------------------
A simple experiment simply stops reading from an input stream in function
handle_incoming when the conn->instream message buffer count is greater than
some limit. As expected, this experiment stops the input stream and it never
starts again.
The flow control solution needs some coordination between the connection/link
that is consuming buffers from the instream message. When the consumer detects
that the instream is paused because of flow control and the message again has
flow control capacity for more buffers then the consumer schedules the input
stream to start reading and producing buffers again.
> TCP adaptor has no receive flow control
> ---------------------------------------
>
> Key: DISPATCH-1947
> URL: https://issues.apache.org/jira/browse/DISPATCH-1947
> Project: Qpid Dispatch
> Issue Type: Bug
> Components: Protocol Adaptors
> Reporter: Charles E. Rolke
> Assignee: Charles E. Rolke
> Priority: Major
>
> When offered an infinite incoming data stream then the TCP adaptor always
> reads as much as it can. Fast input going to slow output results in unbounded
> memory growth.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]