Skip to content

EmbeddedChannel.writeOutbound doesn't throw if only context.fireErrorCaught is called #1561

Open
@Davidde94

Description

@Davidde94

Expected behavior

I would have expected writeOutbound to have identical behaviour to writeInbound in that it should throw if either or both of the following are true:

  • A promise is failed
  • A handler calls context.fireErrorCaught

Actual behavior

If the promise isn't failed but fireErrorCaught is called then writeOutbound doesn't throw, but writeInbound does.

Note

This should probably be fixed as part of NIO 3, as it's possible for a lot of project's tests to suddenly begin failing if this is fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugFeature doesn't work as expected.⚠️ semver/majorBreaks existing public API.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions