progress removing onionr.py
This commit is contained in:
parent
cbe10f914a
commit
6bf8bb1db6
@ -41,7 +41,6 @@ class PrivateAPI:
|
||||
This also saves the used host (random localhost IP address) to the data folder in host.txt
|
||||
'''
|
||||
self.config = config
|
||||
self.serializer = serializeddata.SerializedData()
|
||||
self.startTime = epoch.get_epoch()
|
||||
app = flask.Flask(__name__)
|
||||
bindPort = int(config.get('client.client.port', 59496))
|
||||
|
@ -7,15 +7,17 @@ class FDSafeHandler(WSGIHandler):
|
||||
self.timeout.start()
|
||||
try:
|
||||
WSGIHandler.handle(self)
|
||||
except Exception as e:
|
||||
self.handle_error(e)
|
||||
finally:
|
||||
self.timeout.close()
|
||||
|
||||
except gevent.Timeout as ex:
|
||||
if ex is self.timeout:
|
||||
pass
|
||||
else:
|
||||
raise
|
||||
'''
|
||||
def handle_error(self, two, three, four):
|
||||
if two is self.timeout:
|
||||
self.result = [b"Timeout"]
|
||||
self.start_response("200 OK", [])
|
||||
self.process_result()
|
||||
else:
|
||||
WSGIHandler.handle_error(self)
|
||||
WSGIHandler.handle_error(self)
|
||||
'''
|
@ -116,4 +116,4 @@ class PrivateEndpoints:
|
||||
|
||||
@private_endpoints_bp.route('/gettorsocks')
|
||||
def get_tor_socks():
|
||||
return Response(client_api._too_many.get(NetController).socksPort)
|
||||
return Response(str(client_api._too_many.get(NetController).socksPort))
|
@ -144,5 +144,4 @@ def insert_block(data, header='txt', sign=False, encryptType='', symKey='', asym
|
||||
events.event('insertdeniable', {'content': plaintext, 'meta': plaintextMeta, 'hash': retData, 'peer': bytesconverter.bytes_to_str(asymPeer)}, threaded = True)
|
||||
else:
|
||||
events.event('insertblock', {'content': plaintext, 'meta': plaintextMeta, 'hash': retData, 'peer': bytesconverter.bytes_to_str(asymPeer)}, threaded = True)
|
||||
|
||||
return retData
|
Loading…
Reference in New Issue
Block a user