thaliproject/thali — pull request #74 by yaronyg (2014-08-20 20:16:20+00:00)
Title: Enable relay to resolve onion address into httpkeyurls

To jog the readers memory, our Javascript based QRCode reading system can't handle very large QR Codes. So we worked around this by only displaying a TDH's onion domain address (which is tiny) and port. We then needed the relay to translate that address/port into a full httpkey URL by connecting to the onion address via Tor and pulling down the server's key. Unfortunately I forgot to hook up the code that does this resolution to the Tor Socks proxy in my last check in so this one fixes that and also updates the TDH to publish to the relay what its socks proxy address is.

I also did some test refactoring and fixed an annoying bug in Android's HTTPClient that it doesn't properly honor retry handling on ioexceptions from the network connection layer (where we do our SSL voodoo). Eventually we need to update to Apache's support Android releases and get off the stock Android Apache code.