-
Bug
-
Resolution: Done
-
Major
-
7.0.4.GA
-
None
If some exception is thrown while uploading file (for example, file size limit exceeded), then file deleted, but file channel is not closed. Linux lsof command shown a growing number of descriptors. I solved this problem by modifying io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.parseBlocking()
exchange.putAttachment(FORM_DATA, data);
} catch (IOException e) {
try {
if (fileChannel != null)
} catch (Throwable ignored) {
}
throw e;
}
Added fileChannel.close(). May be, this code need to be moved in MultiPartUploadHandler.close()
- clones
-
JBEAP-8395 File descriptors leak in MultiPartParserDefinition
- Closed
- incorporates
-
UNDERTOW-961 File descriptors leak in MultiPartParserDefinition
- Resolved
- is incorporated by
-
JBEAP-6775 [GSS](7.0.z) Upgrade Undertow 1.3.25.Final to 1.3.26.Final
- Closed