[
https://issues.apache.org/jira/browse/CAMEL-10729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15832438#comment-15832438
]
Claus Ibsen commented on CAMEL-10729:
-------------------------------------
Can you maybe add a bit more javadoc what it would mean if autocloseBody =
false, and includeBody = true means. Eg that the user must close that body
manually himself. That is not so obvious from the docs.
> Camel-AWS: S3 autocloseBody option
> ----------------------------------
>
> Key: CAMEL-10729
> URL: https://issues.apache.org/jira/browse/CAMEL-10729
> Project: Camel
> Issue Type: Improvement
> Components: camel-aws
> Reporter: Andrea Cosentino
> Assignee: Andrea Cosentino
> Fix For: 2.18.2, 2.19.0
>
>
> Actually when we are using the includeBody with default value (true), it's up
> to the user to close the S3Object after it is completely consumed.
> This lead to problems, because each time an GetObjectRequest to S3 is done a
> connection is open and the connection pool is exhausted after a while. We can
> add this option and add the S3Object.close() call into a
> SynchronizationAdapter to pass to exchange.OnCompletion method.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)