netty5/codec-http/src
Violeta Georgieva 47bababfc7
Ensure HttpData#addContent/setContent releases the buffer before throwing IOException (#11621)
Motivation:
When the ByteBuf size exceeds the max limit/defined size, IOException is thrown.
HttpData#addContent/setContent should release the buffer in such cases otherwise memory leak will happen.

Modification:
- Release the provided ByteBuf before throwing IOException
- Add unit tests

Result:
Fixes #11618
2021-09-02 13:59:44 -07:00
..
main Ensure HttpData#addContent/setContent releases the buffer before throwing IOException (#11621) 2021-09-02 13:59:44 -07:00
test Ensure HttpData#addContent/setContent releases the buffer before throwing IOException (#11621) 2021-09-02 13:59:44 -07:00