Skip to content

fix(#168): don't surface raw WS response body in send error#318

Open
LeJamon wants to merge 1 commit into
XRPLF:mainfrom
LeJamon:fix/issue-168
Open

fix(#168): don't surface raw WS response body in send error#318
LeJamon wants to merge 1 commit into
XRPLF:mainfrom
LeJamon:fix/issue-168

Conversation

@LeJamon

@LeJamon LeJamon commented May 30, 2026

Copy link
Copy Markdown

Closes #168.

When the oneshot request receiver had been dropped, Sender::send handed back the undeliverable message and it was embedded verbatim into MessageChannelError(String), surfacing the raw response body into error-reporting channels.

The undeliverable message is now discarded and MessageChannelError is a data-free variant.

Testing

  • cargo test --lib — added handle_message_routes_response_to_waiting_request and unmatched_message_is_buffered_for_pop
  • cargo fmt --check; no_std feature set green

When the oneshot request receiver was dropped, sender.send returned the
undeliverable message and it was embedded verbatim into
MessageChannelError, leaking the raw response body into error channels.
Drop the returned message and make MessageChannelError a data-free variant.
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.

sender.send(message) surfaces raw response body into error string

1 participant