Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stop RPC servers in shutdown #1361

Merged
merged 3 commits into from
Oct 16, 2024
Merged

stop RPC servers in shutdown #1361

merged 3 commits into from
Oct 16, 2024

Conversation

darioush
Copy link
Collaborator

@darioush darioush commented Oct 10, 2024

Why this should be merged

Close the rpc handlers to wait for in-flight rpc requests before calling eth.Stop which closes chaindb, as rawdb package doesn't propagate err correctly this can lead to panics during shutdown.

How this works

Explicitly calls .Stop for the rpc servers created

How this was tested

CI

How is this documented

N/A

@darioush darioush marked this pull request as ready for review October 10, 2024 18:10
@darioush darioush requested review from ceyonur and a team as code owners October 10, 2024 18:10
@darioush darioush enabled auto-merge (squash) October 16, 2024 00:10
@darioush darioush merged commit 273d3d8 into master Oct 16, 2024
14 checks passed
@darioush darioush deleted the stop-handlers-shutdown branch October 16, 2024 00:28
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