Skip to content

fix(rpc-client): return error instead of panic on unexpected batch response#3807

Merged
mattsse merged 1 commit intoalloy-rs:mainfrom
neowangreal:panicFxix
Mar 19, 2026
Merged

fix(rpc-client): return error instead of panic on unexpected batch response#3807
mattsse merged 1 commit intoalloy-rs:mainfrom
neowangreal:panicFxix

Conversation

@neowangreal
Copy link
Copy Markdown
Contributor

The input comes from external transports/nodes, so a protocol-violating batch response is possible in practice. A panic amplifies a single anomalous response into a full process failure, which is disproportionate.

Copy link
Copy Markdown
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

Reviewed locally; looks good to merge.

@github-project-automation github-project-automation Bot moved this to Reviewed in Alloy Mar 19, 2026
@mattsse mattsse merged commit 163fe1d into alloy-rs:main Mar 19, 2026
30 checks passed
@github-project-automation github-project-automation Bot moved this from Reviewed to Done in Alloy Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants