Hi,
I have question regarding the proper handling of HTTP requests.
I have the following pipeline:
channelPipeline.addLast(new HttpRequestDecoder());
//...
channelPipeline.addLast(new HttpObjectAggregator(maxRequestBodySizeInBytes));
//...
channelPipeline.addLast(new HttpDecoderResultValidator(httpProcessingMetrics));
In the result validator:
I have the following check:
if (!request.decoderResult().isSuccess()) {
In that case, should I also call ReferenceCountUtil.release(msg);
If so, why? If not, why?
I saw a
fix in reactor-http project which led to think about it.
Without it there will be a memory leak?
Thanks!
Asaf