Browse Source

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

Ludovic Gasc (GMLudo) 10 years ago
parent
commit
7c9f9b3ad0
1 changed files with 2 additions and 2 deletions
  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]