mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-14 04:19:00 +00:00
Use the Proactor event loop on Windows.
This commit is contained in:
parent
05c0efe39b
commit
2a8823b856
@ -138,6 +138,10 @@ class Server:
|
||||
logger = logging.getLogger("asyncio")
|
||||
logger.setLevel(logging.WARNING)
|
||||
|
||||
if sys.platform.startswith("win"):
|
||||
# use the Proactor event loop on Windows
|
||||
asyncio.set_event_loop(asyncio.ProactorEventLoop())
|
||||
|
||||
# TODO: SSL support for Rackspace cloud integration (here or with nginx for instance).
|
||||
self._loop = asyncio.get_event_loop()
|
||||
app = aiohttp.web.Application()
|
||||
|
Loading…
Reference in New Issue
Block a user