netty5/codec/src
Martin Furmanski 585ed4d08f Improve error handling in ByteToMessageDecoder when expand fails (#9822)
Motivation:

The buffer which the decoder allocates for the expansion can be
leaked if there is a subsequent issue writing to it.

Modifications:
The error handling has been improved so that the new buffer always
is released on failure in the expand.

Result:
The decoder will not leak in this scenario any more.

Fixes: https://github.com/netty/netty/issues/9812
2019-11-28 12:29:05 +01:00
..
main/java/io/netty/handler/codec Improve error handling in ByteToMessageDecoder when expand fails (#9822) 2019-11-28 12:29:05 +01:00
test Improve error handling in ByteToMessageDecoder when expand fails (#9822) 2019-11-28 12:29:05 +01:00