[
https://issues.apache.org/jira/browse/WSCOMMONS-371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rich Scheuerle resolved WSCOMMONS-371.
--------------------------------------
Resolution: Fixed
Committed 685589
> DetachableInputStream should not be detached if the stream is closed
> --------------------------------------------------------------------
>
> Key: WSCOMMONS-371
> URL: https://issues.apache.org/jira/browse/WSCOMMONS-371
> Project: WS-Commons
> Issue Type: Bug
> Components: AXIOM
> Reporter: Rich Scheuerle
> Assignee: Rich Scheuerle
> Priority: Minor
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> This is a minor change.
> Background:
> The DetachableInputStream is a filter over the original input stream (i.e.
> HTTPInputStream).
> When the detach method is called, the remaining bytes in the original stream
> are copied to a local (in memory) stream and the original stream is closed.
> This is beneficial in situations where we want to close the original stream
> (i.e. allow transport to pool connections/resources), but still retain the
> contents of the stream for the consumer.
> Problem:
> The detach method should be a NOOP if the stream is already closed.
> Currently calling detach on a closed stream causes an exception.
> Solution:
> Simple change...I am testing the patch
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.