commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Otto Fowler (JIRA)" <>
Subject [jira] [Commented] (VFS-614) MonitorInputStream should not close the stream in "read"
Date Fri, 16 Feb 2018 16:19:00 GMT


Otto Fowler commented on VFS-614:


in your test, you are reading from an empty file.  Both the stream detect and EOF read, but
the difference is, as you have guessed the wrapped VFS stream closes on EOF.


If you change your test such that the file does have something in it, and you are NOT reading
to EOF then it will work.

I don't think VFS should close the stream through, it should act as the BufferedOutputStream
that is it's base does


> MonitorInputStream should not close the stream in "read"
> --------------------------------------------------------
>                 Key: VFS-614
>                 URL:
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Boris Petrov
>            Priority: Critical
> Check the following thread for more description:
> And the following repo with a "demo" of the bug:

This message was sent by Atlassian JIRA

View raw message