hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ok2c <...@git.apache.org>
Subject [GitHub] httpcomponents-core issue #47: Fix hang when using AbstractClassicEntityProd...
Date Thu, 10 Aug 2017 12:59:53 GMT
Github user ok2c commented on the issue:

    @cakofony Always returning Integer.MAX_VALUE from `AsyncDataProducer#available` does not
sound right me. Simple producers do that if they are self-contained and can always produce
more data if the underlying channel is ready. This is not the case with complex producers
such as `AsyncDataProducer` that may not always have data to write to the channel. By returning
Integer.MAX_VALUE from `AsyncDataProducer#available` one can cause the I/O reactor spin busily
and produce no data. 
    We need to think of a better fix. How reliably can you reproduce the issue and would it
be possible to make a junit? 

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org

View raw message