netty5/handler/src/main
Norman Maurer 7150b42a56 Refactor SslHandler internals to always use heap buffers for JDK SSLE… (#9696)
Motivation:

We should aim to always use heap buffers when using the JDK SSLEngine for now as it wants to operate on byte[] and so will do internal memory copies if a non heap buffer is used. Beside this it will always return BUFFER_OVERFLOW when a smaller buffer then 16kb is used when calling wrap(...) (even if a very small amount of bytes should be encrypted). This can lead to excercive direct memory usage and pressure for no good reason.

Modifications:

Refactor internals of SslHandler to ensure we use heap buffers for the JDK SSLEngine impelementation

Result:

Less direct memory usage when JDK SSLEngine implementation is used
2019-10-23 14:29:01 +02:00
..
java/io/netty/handler Refactor SslHandler internals to always use heap buffers for JDK SSLE… (#9696) 2019-10-23 14:29:01 +02:00
resources/META-INF/native-image/io.netty/handler Update GraalVM Native Image configuration. (#9515) 2019-08-30 09:21:33 +02:00