bine
bine copied to clipboard
Onion creation and event listening race
When starting an onion Listener, the library first requests the onion to be created, and only later does it start listening for events (https://github.com/cretz/bine/blob/master/tor/listen.go#L267). There's a chance that by the time it subscribes to events, listening has already been started (or failed). This will start Listen to hang.
I'm not sure if this is the issue I'm hitting in my project or not, but if I restart my Tor node and recreate an old onion, it almost always hangs.
Will look to moving event capture asynchronous and before the sending of the conf. Same at #40.