Currently the only way I know if signaling NEWNYM
worked is if I didn't receive a message stating that I've been rate limited.
Is there a way to send something via GETINFO
both pre/post signaling for a new identity and compare them after?
Not seeing anything in the spec (https://torproject.gitlab.io/torspec/control-spec/#getinfo), help would be very much appreciated :-D!
EDIT: My workaround. I created a custom listener to write all notice messages to a string buffer. Added the listener before signaling NEWNYM, then waited a few milliseconds and checked the buffer to see if it contained the Rate limited
message. If not, I posted to the notification that Identity was changed.
If you've got any better ideas, would be much appreciated.
250 OK
)? For example, see how Stem processes the reply. – Steve Jun 25 '20 at 20:50jtorctl 0.4
for Android to signal and if it was a success, it does not throw anIOException
, where if it fails to signal, it does. – 05nelsonm Jun 26 '20 at 2:41