jimbojw / memorelay

In-memory Nostr relay.
Apache License 2.0
0 stars 0 forks source link

Ctrl-C does not stop packaged command-line server #17

Closed jimbojw closed 1 year ago

jimbojw commented 1 year ago

Steps to reproduce:

Expected behavior:

Actual behavior:

Workaround:

Notes: It seems like the process.once('SIGINT') handler in ./src/bin.ts must be capturing the first interrupt signal. For some reason though, it's not stopping the server from listening. Perhaps better debug logging would reveal which step is the problem.

Investigate to what degree this affects other methods of invoking the server, such as via ts-node and nodemon.

jimbojw commented 1 year ago

This appears to be fixed with the latest merge. The only appreciable change was the addition of logging. Why this would resolve the issue is unclear. Closing for now, but will reopen if the problem resurfaces.