Skip to content

ChunkedWriteHandler hides closed channels #14236

@maczikasz

Description

@maczikasz

Expected behavior

When a ChunkedWriteHandler attempts tp pass-through write to a closed channel, the write promise fails

Actual behavior

ChunkedWriteHandler tries to discard a closed channel but since it have not added any work to its queue, it will NOOP. This will cause the passed down Promise in write to never err

Steps to reproduce

Close a channel during writing in a chain with a ChunkedWriteHandler

Minimal yet complete reproducer code (or URL to code)

TBD

Netty version

From 4.1.105, introduced by this commit

ce0366b

JVM version (e.g. java -version)

openjdk 21.0.2 2024-01-16 LTS

OS version (e.g. uname -a)

Darwin F7VN9D7X30 23.6.0 Darwin Kernel Version 23.6.0: Fri Jul 5 17:56:41 PDT 2024; root:xnu-10063.141.1~2/RELEASE_ARM64_T6000 arm64 arm Darwin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions