mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
close the wait for HS connection after it successfully connects, because then flask is unresponsive until it times out
This commit is contained in:
parent
4edcce9ece
commit
17646641f6
@ -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')))
|
||||||
|
Loading…
Reference in New Issue
Block a user