Cwtchbot doesn't tear down Tor connections? #3

Open
opened 2023-06-20 14:17:50 +00:00 by decentral1se · 0 comments

You have to ctrl-c to stop running the bot AFAIU. And since we don't run app.Shutdown() & acn.Close() (unsure if there are more clean shutdown APIs?), there are still Tor processes up and running in a listening state?

I guess we could use the 'ol os.Signal.Notify/syscall.SIGINT/SIGTERM trick to catch the program exit and call the shutdown APIs? Can submit a PR if I'm on the right track.

You have to `ctrl-c` to stop running the bot AFAIU. And since we don't run `app.Shutdown()` & `acn.Close()` (unsure if there are more clean shutdown APIs?), there are still Tor processes up and running in a listening state? I guess we could use the 'ol `os.Signal.Notify`/`syscall.SIGINT/SIGTERM` trick to catch the program exit and call the shutdown APIs? Can submit a PR if I'm on the right track.
sarah added the
bug
label 2023-06-26 17:54:33 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sarah/cwtchbot#3
No description provided.