netty5/codec-memcache/src
Xiaoyan Lin 4606890513 Retain AbstractBinaryMemcacheDecoder.currentMessage when sending it out and release it when it's not used.
Motivation:

AbstractBinaryMemcacheDecoder.currentMessage is not retained after sending it out. Hence, if a message contains `extras`, `io.netty.util.IllegalReferenceCountException` will be thrown in `channelInactive`.

Modifications:

Retain AbstractBinaryMemcacheDecoder.currentMessage After putting it to `out` and release it when it's not used.

Result:

No IllegalReferenceCountException or leak.
2016-01-29 14:15:49 +01:00
..
main/java/io/netty/handler/codec/memcache Retain AbstractBinaryMemcacheDecoder.currentMessage when sending it out and release it when it's not used. 2016-01-29 14:15:49 +01:00
test/java/io/netty/handler/codec/memcache/binary Retain AbstractBinaryMemcacheDecoder.currentMessage when sending it out and release it when it's not used. 2016-01-29 14:15:49 +01:00