Doswell
Doswell

Reputation: 418

How to check references for buffers provided from a PooledByteBufallocator?

Using Netty 4, is there a way to see how many ByteBuf's are unreleased (still allocated) from a PooledByteBufAllocator?

The reason I'm looking for this is mainly for unit testing, so that I can provide a PooledByteBufAllocator into a handler/pipeline on the channel (using an EmbeddedChannel), and ensure that after the handler or pipeline completes that all requested/created pooled ByteBufs have been released.

Upvotes: 1

Views: 199

Answers (1)

Norman Maurer
Norman Maurer

Reputation: 23567

No there is no way at the moment. I think this will be part of https://github.com/netty/netty/issues/1586

Upvotes: 1

Related Questions