Skip to content

Comments

fix(node-bindings): kill anvil child on timeout#3635

Merged
mattsse merged 1 commit intoalloy-rs:mainfrom
SashaMalysehko:fix/anvil-timeout-kill-child-process
Feb 3, 2026
Merged

fix(node-bindings): kill anvil child on timeout#3635
mattsse merged 1 commit intoalloy-rs:mainfrom
SashaMalysehko:fix/anvil-timeout-kill-child-process

Conversation

@SashaMalysehko
Copy link
Contributor

Motivation

Previously, Anvil::try_spawn returned NodeError::Timeout without killing the spawned child process. This left stray Anvil instances running in the background whenever startup timed out, unlike the Geth and Reth implementations which explicitly kill their child processes on timeout.

Solution

Add a kill of the Anvil child process when try_spawn times out, aligning its behavior with Geth and Reth and preventing leaked node processes on startup timeout.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@github-project-automation github-project-automation bot moved this to Reviewed in Alloy Feb 3, 2026
@mattsse mattsse merged commit d7d88b1 into alloy-rs:main Feb 3, 2026
30 checks passed
@github-project-automation github-project-automation bot moved this from Reviewed to Done in Alloy Feb 3, 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