From 83813ff1ac71da6030f7181d3c8fe961491a51f3 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Thu, 9 Aug 2018 23:30:14 +0900 Subject: [PATCH] Extend SUPPRESS_MESSAGE_REGEX Fixes #521 --- electrumx/lib/server_base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/electrumx/lib/server_base.py b/electrumx/lib/server_base.py index 602ae90..1c8dfe3 100644 --- a/electrumx/lib/server_base.py +++ b/electrumx/lib/server_base.py @@ -23,12 +23,12 @@ class ServerBase(object): Derived classes are expected to: - - set PYTHON_MIN_VERSION and SUPPRESS_MESSAGES as appropriate + - set PYTHON_MIN_VERSION and SUPPRESS_MESSAGE_REGEX as appropriate - implement the serve() coroutine, called from the run() method. Upon return the event loop runs until the shutdown signal is received. ''' - - SUPPRESS_MESSAGE_REGEX = re.compile('SSH handshake') + SUPPRESS_MESSAGE_REGEX = re.compile('SSL handshake|Fatal read error on|' + 'SSL error in data received') SUPPRESS_TASK_REGEX = re.compile('accept_connection2') PYTHON_MIN_VERSION = (3, 6)