From 2a8823b856edca5068438aea99431c69bcc8ddff Mon Sep 17 00:00:00 2001 From: grossmj Date: Thu, 22 Jan 2015 21:11:57 -0700 Subject: [PATCH] Use the Proactor event loop on Windows. --- gns3server/server.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gns3server/server.py b/gns3server/server.py index b8a847f2..1fdeb876 100644 --- a/gns3server/server.py +++ b/gns3server/server.py @@ -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()