mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-31 05:13:49 +02: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 = logging.getLogger("asyncio")
|
||||||
logger.setLevel(logging.WARNING)
|
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).
|
# TODO: SSL support for Rackspace cloud integration (here or with nginx for instance).
|
||||||
self._loop = asyncio.get_event_loop()
|
self._loop = asyncio.get_event_loop()
|
||||||
app = aiohttp.web.Application()
|
app = aiohttp.web.Application()
|
||||||
|
Loading…
Reference in New Issue
Block a user