netty5/transport-native-kqueue/src/main
Norman Maurer 251bb1a739 Not use safeRelease(...) but release(...) to release non-readable holders to ensure we not mask errors.
Motivation:

AbstractChannel attempts to "filter" messages which are written [1]. A goal of this process is to copy from heap to direct if necessary. However implementations of this method [2][3] may translate a buffer with 0 readable bytes to EMPTY_BUFFER. This may mask a user error where an empty buffer is written but already released.

Modifications:

Replace safeRelease(...) with release(...) to ensure we propagate reference count issues.

Result:

Fixes [#7383]
2017-12-04 20:38:35 +01:00
..
c Include JNIEXPORT on exported symbols 2017-08-18 17:34:48 -07:00
java/io/netty/channel/kqueue Not use safeRelease(...) but release(...) to release non-readable holders to ensure we not mask errors. 2017-12-04 20:38:35 +01:00