Cwtchbot doesn't tear down Tor connections? #3

Open
opened 6 months ago 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 6 months ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: sarah/cwtchbot#3
Loading…
There is no content yet.