Closed 05nelsonm closed 3 months ago
Unsure if this should be a direct subclass of RuntimeEvent
, or if there are other commands that would benefit from this intercept behavior.
Something like the TorCmd
sealed class hierarchy (e.g. RuntimeEvent.CMD.SIGNAL.NEWNYM
) but would be for only those TorCmd
that tor replies 250 OK
and then dispatches a NOTICE
or something for.
When signaling
NEWNYM
via tor's control connection, it only replies with250 OK
. The crux is that even though the reply is250 OK
(indicating that tor received the signal), tor can rate-limit the execution. When it does, it will dispatch aNOTICE
event indicating so.This
NEWNYM
listener will intercept allTorCmd.Signal.NewNym
executions, and keep an eye out for the notice event.RuntimeEvent.NEWNYM
observers with failureRuntimeEvent.NEWNYM
observers with success