-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
3.1.0.Final
This is about evaluating fixing RESTEASY-1025 differently from how it has been fixed in 3.1.0.Final; in particular, see PR #1026: https://github.com/resteasy/Resteasy/pull/1026
Attached to this jira is the diff file for the PR above.
Original issue description:
There is a ByteBuf that is created but never released in ResteasyHttpRequestDecoder. Netty reports this with the following log line:
LEAK: ByteBuf.release() was not called before it's garbage-collected
There is a retain called on the HttpRequest content before the newly created Bytebuf is added to an input stream. I'm not entirely sure why this retain is required so I have attached two different pull requests to this issue. One that drops the retain and one that releases the Bytebuf. I would appreciate any information on why the retain is necessary.
- clones
-
RESTEASY-1205 RestEasy-Netty4: ByteBuf leak in ResteasyHttpRequestDecoder
- Resolved