Skip to content

ipc: auto-restart bridge on crash (no retry) - #25

Open
nextgens wants to merge 1 commit into
akiselev:masterfrom
nextgens:memory-fix
Open

nextgens wants to merge 1 commit into
akiselev:masterfrom
nextgens:memory-fix

Conversation

@nextgens

Copy link
Copy Markdown

When the Java bridge crashes mid-command (EOF on socket), clients created with BridgeClient::new_with_restart() will:

  1. Detect the crash
  2. Call ensure_bridge_running() to bring the JVM back up
  3. Return an error telling the user to re-run their command

This eliminates the manual 'ghidra restart' step after a crash. The command is NOT retried automatically (a crash during a large import will crash again), but the bridge is ready for the next invocation.

When the Java bridge crashes mid-command (EOF on socket), clients created
with BridgeClient::new_with_restart() will:
1. Detect the crash
2. Call ensure_bridge_running() to bring the JVM back up
3. Return an error telling the user to re-run their command

This eliminates the manual 'ghidra restart' step after a crash. The
command is NOT retried automatically (a crash during a large import will
crash again), but the bridge is ready for the next invocation.
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.

1 participant