Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Not use safeRelease(...) but release(...) to release non-readable hol…
…ders 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 [netty#7383]
- Loading branch information