Skip to content

Fix response channel error handling#149

Merged
jjeffcaii merged 1 commit intorsocket:masterfrom
echistyakov:fix-respond-channel
Apr 29, 2026
Merged

Fix response channel error handling#149
jjeffcaii merged 1 commit intorsocket:masterfrom
echistyakov:fix-respond-channel

Conversation

@echistyakov
Copy link
Copy Markdown
Contributor

Handle "Error from Requester, Responder terminates" case

Motivation:

Support and handle the following case for REQUEST_CHANNEL: https://rsocket.io/about/protocol/#error-from-requester-responder-terminates

i.e. when requester sends an ERROR frame to the responder

Modifications:

Added a missing case to the switch in onFrameError function.

Also - small nit - simplify error message in DispatchFrame by referencing a local t variable containing frame type.

Result:

"Error from Requester, Responder terminates" works correctly after this change.

@echistyakov echistyakov changed the title Fix respons channel error handling Fix response channel error handling Apr 25, 2026
Copy link
Copy Markdown
Member

@jjeffcaii jjeffcaii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jjeffcaii jjeffcaii merged commit 2a2c1cf into rsocket:master Apr 29, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants