netty5/transport/src
Norman Maurer e3cb9935c0 Take memory overhead of ChannelOutboundBuffer / PendingWriteQueue into account
Motivation:

To guard against the case that a user will enqueue a lot of empty or small buffers and so raise an OOME we need to also take the overhead of the ChannelOutboundBuffer / PendingWriteQueue into account when detect if a Channel is writable or not. This is related to #5856.

Modifications:

When calculate the memory for an message that is enqueued also add some extra bytes depending on the implementation.

Result:

Better guard against OOME.
2016-11-03 15:54:00 +01:00
..
main/java/io/netty Take memory overhead of ChannelOutboundBuffer / PendingWriteQueue into account 2016-11-03 15:54:00 +01:00
test/java/io/netty Take memory overhead of ChannelOutboundBuffer / PendingWriteQueue into account 2016-11-03 15:54:00 +01:00