History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LEDGE-146
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed/Completed
Priority: Major Major
Assignee: Unassigned
Reporter: Rafał Krzewski
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ObjectLedge

ContentExtractor fails with "too many open files" error whie unpacking larget jars

Created: 2008-05-18 15:33   Updated: 2008-05-18 15:34
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified


 Description  « Hide
spotted by Marcin Gołębski

proposed fix:

                if(is != null && os != null)
                {
                    int count = 0;
                    while(count >= 0)
                    {
                        count = is.read(buffer, 0, buffer.length);
                        if(count > 0)
                        {
                            os.write(buffer, 0, count);
                        }
                    }
                    os.flush(); // <-- os.close() here
                }

 All   Comments   Work Log   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Rafał Krzewski - 2008-05-18 15:34
done.

also closed input stream as a matter of good practices