Explorar o código

Improve aiohttp performances based on this discussion: https://github.com/KeepSafe/aiohttp/issues/314

Ludovic Gasc (GMLudo) %!s(int64=10) %!d(string=hai) anos
pai
achega
7c9f9b3ad0
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      frameworks/Python/AsyncIO/aiohttp.web/hello/__init__.py

+ 2 - 2
frameworks/Python/AsyncIO/aiohttp.web/hello/__init__.py

@@ -39,8 +39,8 @@ class Container(api_hour.Container):
     def make_servers(self):
         return [self.servers['http'].make_handler(logger=self.worker.log,
                                                   debug=False,
-                                                  keep_alive=self.worker.cfg.keepalive,
-                                                  access_log=self.worker.log.access_log,
+                                                  keep_alive=0,
+                                                  access_log=None,
                                                   access_log_format=self.worker.cfg.access_log_format),
                 servers.yocto_http.YoctoHttpJson,
                 servers.yocto_http.YoctoHttpText]