From 2bc996f660dc725fcf7fc22d71996165f837f44e Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Mon, 27 Jan 2020 23:52:35 -0600 Subject: [PATCH] supress gevent error from sses --- src/httpapi/sse/private/__init__.py | 2 ++ static-data/default_config.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/httpapi/sse/private/__init__.py b/src/httpapi/sse/private/__init__.py index e9011e92..32934772 100644 --- a/src/httpapi/sse/private/__init__.py +++ b/src/httpapi/sse/private/__init__.py @@ -4,6 +4,7 @@ SSE API for node client access """ from flask import g, Blueprint from gevent import sleep +import gevent from onionrstatistics.transports.tor import TorStats from .. import wrapper @@ -25,6 +26,7 @@ from .. import wrapper private_sse_blueprint = Blueprint('privatesse', __name__) SSEWrapper = wrapper.SSEWrapper() +gevent.hub.Hub.NOT_ERROR = (gevent.GreenletExit, SystemExit, Exception) @private_sse_blueprint.route('/hello') def stream_hello(): diff --git a/static-data/default_config.json b/static-data/default_config.json index e4eef5ac..27e62d47 100755 --- a/static-data/default_config.json +++ b/static-data/default_config.json @@ -12,7 +12,7 @@ "insert_deniable_blocks": true, "max_block_age": 2678400, "public_key": "", - "random_bind_ip": false, + "random_bind_ip": true, "use_bootstrap_list": true, "store_plaintext_blocks": true, "show_notifications": true