|
@ -25,6 +25,7 @@ SUPPRESS_MESSAGES = [ |
|
|
'Fatal write error on socket transport', |
|
|
'Fatal write error on socket transport', |
|
|
] |
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def main_loop(): |
|
|
def main_loop(): |
|
|
'''Start the server.''' |
|
|
'''Start the server.''' |
|
|
if os.geteuid() == 0: |
|
|
if os.geteuid() == 0: |
|
@ -43,7 +44,7 @@ def main_loop(): |
|
|
def on_exception(loop, context): |
|
|
def on_exception(loop, context): |
|
|
'''Suppress spurious messages it appears we cannot control.''' |
|
|
'''Suppress spurious messages it appears we cannot control.''' |
|
|
message = context.get('message') |
|
|
message = context.get('message') |
|
|
if not message in SUPPRESS_MESSAGES: |
|
|
if message not in SUPPRESS_MESSAGES: |
|
|
if not ('task' in context and |
|
|
if not ('task' in context and |
|
|
'accept_connection2()' in repr(context.get('task'))): |
|
|
'accept_connection2()' in repr(context.get('task'))): |
|
|
loop.default_exception_handler(context) |
|
|
loop.default_exception_handler(context) |
|
|