aboutsummaryrefslogtreecommitdiffstats
path: root/community/gns3-server/gns3-server-aiohttp.patch
blob: 5a4fb37039a1f3f5a6ecb5023cdd1a4009981a3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
diff --git a/gns3server/web/web_server.py b/gns3server/web/web_server.py
index 8352134..53a8252 100644
--- a/gns3server/web/web_server.py
+++ b/gns3server/web/web_server.py
@@ -42,8 +42,8 @@ import gns3server.handlers
 import logging
 log = logging.getLogger(__name__)
 
-if not aiohttp.__version__.startswith("2.2"):
-    raise RuntimeError("aiohttp 2.2 is required to run the GNS3 server")
+if not aiohttp.__version__.startswith("2.3"):
+    raise RuntimeError("aiohttp 2.3 is required to run the GNS3 server")
 
 
 class WebServer:
diff --git a/gns3server/web/web_server.py b/gns3server/web/web_server.py
index 8352134..e999c11 100644
--- a/gns3server/web/web_server.py
+++ b/gns3server/web/web_server.py
@@ -101,7 +101,7 @@ class WebServer:
         if self._app:
             yield from self._app.shutdown()
         if self._handler:
-            yield from self._handler.finish_connections(2)  # Parameter is timeout
+            yield from self._handler.shutdown(2.0)  # Parameter is timeout
         if self._app:
             yield from self._app.cleanup()