close the wait for HS connection after it successfully connects, because then flask is unresponsive until it times out

This commit is contained in:
Micah Lee 2014-09-02 18:32:59 -07:00
parent 4edcce9ece
commit 17646641f6

View File

@ -132,6 +132,8 @@ class OnionShare(object):
s = socks.socksocket() s = socks.socksocket()
s.setproxy(socks.PROXY_TYPE_SOCKS5, '127.0.0.1', 9150) s.setproxy(socks.PROXY_TYPE_SOCKS5, '127.0.0.1', 9150)
s.connect((self.onion_host, 80)) s.connect((self.onion_host, 80))
#s.sendall('GET / HTTP/1.1\r\n\r\n')
s.close()
ready = True ready = True
sys.stdout.write('{0}\n'.format(strings._('wait_for_hs_yup'))) sys.stdout.write('{0}\n'.format(strings._('wait_for_hs_yup')))