[
https://issues.apache.org/jira/browse/HTTPCLIENT-2428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18099108#comment-18099108
]
ASF subversion and git services commented on HTTPCLIENT-2428:
-------------------------------------------------------------
Commit 88c62e7cfc680ad83096f0165c018272abd28c4b in httpcomponents-client's
branch refs/heads/master from Arturo Bernal
[ https://gitbox.apache.org/repos/asf?p=httpcomponents-client.git;h=88c62e7cf ]
HTTPCLIENT-2428: Scale reactor capacity in inflating AsyncDataConsumers to
match decompressed output
Inflating consumers now request proportionally fewer compressed bytes than the
downstream consumer's advertised (decompressed) capacity, so decompression no
longer overshoots it; InflatingBrotliDataConsumer also stops overriding the
downstream capacity with Integer.MAX_VALUE.
> Improve capacity management by inflating AsyncDataConsumers
> -----------------------------------------------------------
>
> Key: HTTPCLIENT-2428
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2428
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Components: HttpClient (async)
> Affects Versions: 5.6.2
> Reporter: Oleg Kalnichevski
> Assignee: Arturo Bernal
> Priority: Major
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Presently inflating AsyncDataConsumers propagate capacity information of the
> downstream consumer to the i/o reactor without any adjustment. However, the
> downstream consumer requesting n bytes of data can easily end up with n * c
> bytes due to data decompression.
> inflating AsyncDataConsumers should intercept `CapacityChannel` methods and
> apply an adjustment to the requested data increment to make it more
> predictable to the downstream consumer. It can be a simple division by c or
> something more clever.
> More over, InflatingBrotliDataConsumer at present overrides the capacity
> increment transmitted by the downstream consumer, which looks wrong. This
> needs to be looked into.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]