Skip to content

HTTP file handler doesn't close files #2

Description

@GoogleCodeExporter
Function writeFile in DefaultServlet.java leaves file stream open.

Recommend:
Close FileInputStream in DefaultServlet

FileInputStream fis = new FileInputStream(file);    
FileChannel fileChannel = fis.getChannel();
mapedFile.data = fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, 
fileChannel.size());
fileChannel.close();
fis.close();



Original issue reported on code.google.com by bhLowe on 25 Apr 2013 at 11:41

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions