Skip to content

[Bug]: Electron hangs forever if Nitro server fails to start #312

@Muneerali199

Description

@Muneerali199

The waitForServer function has no retry limit - if Nitro crashes, Electron hangs forever waiting for a server that will never start. Additionally, there are no SIGTERM/SIGINT handlers for clean shutdown.

File: electron/main.cjs

Fix:

  1. Add maxRetries limit to waitForServer
  2. Add SIGTERM/SIGINT handlers for clean process shutdown

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions