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
179 stars 98 forks source link

Put in retry logic for failed bindings #6

Closed yaronyg closed 10 years ago

yaronyg commented 10 years ago

Sometimes bindings just plain don't bind for no reason I can see. The only hope then is to kill off the Tor process and try again. But since everyone is going to have this problem I think we would be better off just putting in arguments to the constructor that specify how long to wait for a binding to occur and how many times to retry.