#7695 no need to manually release chunk during upload (#7696)

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:
Dmitriy Dumanskiy 2018-11-02 09:12:10 +02:00 committed by Norman Maurer
parent bde2865ef8
commit 6fbb12e2c2

View File

@ -225,12 +225,8 @@ public class HttpUploadServerHandler extends SimpleChannelInboundHandler<HttpObj
logger.info(" 100% (FinalSize: " + partialContent.length() + ")"); logger.info(" 100% (FinalSize: " + partialContent.length() + ")");
partialContent = null; partialContent = null;
} }
try { // new value
// new value writeHttpData(data);
writeHttpData(data);
} finally {
data.release();
}
} }
} }
// Check partial decoding for a FileUpload // Check partial decoding for a FileUpload