This commit is contained in:
Ozzieisaacs 2019-10-31 15:44:36 +01:00
parent 1112dc82c9
commit d1afdb4aac

3
cps/server.py Normal file → Executable file
View File

@ -146,6 +146,9 @@ class WebServer(object):
self.unix_socket_file = None
def _start_tornado(self):
if os.name == 'nt':
import asyncio
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
log.info('Starting Tornado server on %s', _readable_listen_address(self.listen_address, self.listen_port))
# Max Buffersize set to 200MB )