Motivation: After #7527 fix there is no need to manually release chunks (HttpData) during file upload as they will be released on HttpPostRequestDecoder.destroy(). Modification: HttpUploadServer example doesn't release chunks manually (doesn't call data.release()). Result: Fixes #7695 and #7689
This commit is contained in:
parent
bde2865ef8
commit
6fbb12e2c2
@ -225,12 +225,8 @@ public class HttpUploadServerHandler extends SimpleChannelInboundHandler<HttpObj
|
||||
logger.info(" 100% (FinalSize: " + partialContent.length() + ")");
|
||||
partialContent = null;
|
||||
}
|
||||
try {
|
||||
// new value
|
||||
writeHttpData(data);
|
||||
} finally {
|
||||
data.release();
|
||||
}
|
||||
}
|
||||
}
|
||||
// Check partial decoding for a FileUpload
|
||||
|
Loading…
Reference in New Issue
Block a user