Extend SUPPRESS_MESSAGE_REGEX

Fixes #521
This commit is contained in:
Neil Booth 2018-08-09 23:30:14 +09:00
parent 9dff85c027
commit 83813ff1ac

View File

@ -23,12 +23,12 @@ class ServerBase(object):
Derived classes are expected to: 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. - implement the serve() coroutine, called from the run() method.
Upon return the event loop runs until the shutdown signal is received. Upon return the event loop runs until the shutdown signal is received.
''' '''
SUPPRESS_MESSAGE_REGEX = re.compile('SSL handshake|Fatal read error on|'
SUPPRESS_MESSAGE_REGEX = re.compile('SSH handshake') 'SSL error in data received')
SUPPRESS_TASK_REGEX = re.compile('accept_connection2') SUPPRESS_TASK_REGEX = re.compile('accept_connection2')
PYTHON_MIN_VERSION = (3, 6) PYTHON_MIN_VERSION = (3, 6)