I have a new update to Orbot coming soon (with arrase's contributions!) that addresses some long standing issues with Polipo stability. Otherwise, yeah, waiting a little bit for all the processes to spin up is not a bad idea.
On Sun, Jan 22, 2017, at 12:42 PM, arrase wrote: > Polipo is the orbot built-in proxy and looks like the prefered option > choose if you call StrongOkHttpClientBuilder + forMaxSecurity > > I do an ugly fix, if OrbotHelper calls onStarting orbot was off and i > wait > 2 seconds for polipo, if orbot was running onStarting is not called. > > 2017-01-22 18:31 GMT+01:00 Mark Murphy <[email protected]>: > > > On Sun, Jan 22, 2017, at 12:21, arrase wrote: > > > i can not find a place at orbot code where the > > > app waits for Polipo before broadcast the state > > > > I do not know what Polipo is, sorry. > > > > If Orbot is sending STATUS_OK without being ready to accept connections, > > then either I misunderstood what STATUS_ON means, or Orbot has a bug. > > With luck, somebody more familiar with Orbot's implementation can > > comment. I generally treat Orbot as a black box. > > > > While we should get this problem fixed, to some extent, you need to > > handle this sort of problem anyway. For example, the server you are > > trying to reach may be unavailable, in which case I would expect that > > you will get an IOException of some form. Or, the device may not have a > > working Internet connection, in which case I would also expect an > > IOException. So, you will need some form of retry policy (e.g., try X > > times, with exponential backoff, before giving up and raising a > > Notification to the user about the problem). > > > > -- > > Mark Murphy (a Commons Guy) > > https://commonsware.com | https://github.com/commonsguy > > https://commonsware.com/blog | https://twitter.com/commonsguy > > _______________________________________________ > > List info: https://lists.mayfirst.org/mailman/listinfo/guardian-dev > > To unsubscribe, email: [email protected] > > > _______________________________________________ > List info: https://lists.mayfirst.org/mailman/listinfo/guardian-dev > To unsubscribe, email: [email protected] -- Nathan of Guardian [email protected] _______________________________________________ List info: https://lists.mayfirst.org/mailman/listinfo/guardian-dev To unsubscribe, email: [email protected]
