abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (JIRA)" <j...@apache.org>
Subject [jira] Commented: (ABDERA-248) MediaResponseContext#writeTo fails to close input stream after writing
Date Fri, 11 Sep 2009 08:45:57 GMT

    [ 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.


Mime
View raw message