You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2009/09/11 10:45:57 UTC

[jira] Commented: (ABDERA-248) MediaResponseContext#writeTo fails to close input stream after writing

    [ https://issues.apache.org/jira/browse/ABDERA-248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12754050#action_12754050 ] 

Felix Meschberger commented on ABDERA-248:
------------------------------------------

>From the peanut gallery not knowing any code: Shouldn't closing the stream be the task of the caller ? 

I assume writeTo reads the stream until being notified to have reached the end of the input, which need not necessarily be the real end. Consider for example reading a ZIP entry from a ZipInputStream.

> MediaResponseContext#writeTo fails to close input stream after writing
> ----------------------------------------------------------------------
>
>                 Key: ABDERA-248
>                 URL: https://issues.apache.org/jira/browse/ABDERA-248
>             Project: Abdera
>          Issue Type: Bug
>    Affects Versions: 1.0
>            Reporter: Daniel Lichtenberger
>
> MediaResponseContext#writeTo fully consumes the input stream, but does not close it afterwards. Looking at the source, I also didn't find another place where the input stream was closed, potentially leaving an open input stream for every media response.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.