thaliproject / Tor_Onion_Proxy_Library

Provides a JAR and an AAR for embedding the Tor Onion Proxy into a Java or Android Program
Apache License 2.0
175 stars 98 forks source link

Take advantage of the Bootstrapped 100% notification #14

Open yaronyg opened 10 years ago

yaronyg commented 10 years ago

In OnionProxyManagerEventHandler/message there is a particular message of the form:

severity.equals("NOTICE") && msg.startsWith("Bootstrapped 100%")

that lets you know that boot strapping has completed. We could speed up our code for trying to start the Tor OP and detecting bad starts if we hooked into this message and relayed it to the retry code. But the perf improvement isn't huge and I figured for now we didn't need the complexity.