From a140c47195cf33ca691e0982abb84166b83abdcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=2E=20K=C3=A4rkk=C3=A4inen?= <98187+Tronic@users.noreply.github.com> Date: Thu, 3 Jun 2021 04:26:32 -0400 Subject: [PATCH] Remove config.REQUEST_BUFFER_QUEUE_SIZE which was not being used since 21.03. (#2156) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: L. Kärkkäinen --- sanic/config.py | 1 - sanic/server.py | 4 ---- 2 files changed, 5 deletions(-) diff --git a/sanic/config.py b/sanic/config.py index 88c52bbd..cb722f74 100644 --- a/sanic/config.py +++ b/sanic/config.py @@ -27,7 +27,6 @@ DEFAULT_CONFIG = { "PROXIES_COUNT": None, "REAL_IP_HEADER": None, "REGISTER": True, - "REQUEST_BUFFER_QUEUE_SIZE": 100, "REQUEST_BUFFER_SIZE": 65536, # 64 KiB "REQUEST_ID_HEADER": "X-Request-ID", "REQUEST_MAX_SIZE": 100000000, # 100 megabytes diff --git a/sanic/server.py b/sanic/server.py index 0d88259a..6cbc5d58 100644 --- a/sanic/server.py +++ b/sanic/server.py @@ -122,7 +122,6 @@ class HttpProtocol(asyncio.Protocol): "response_timeout", "keep_alive_timeout", "request_max_size", - "request_buffer_queue_size", "request_class", "error_handler", # enable or disable access log purpose @@ -165,9 +164,6 @@ class HttpProtocol(asyncio.Protocol): self.request_handler = self.app.handle_request self.error_handler = self.app.error_handler self.request_timeout = self.app.config.REQUEST_TIMEOUT - self.request_buffer_queue_size = ( - self.app.config.REQUEST_BUFFER_QUEUE_SIZE - ) self.response_timeout = self.app.config.RESPONSE_TIMEOUT self.keep_alive_timeout = self.app.config.KEEP_ALIVE_TIMEOUT self.request_max_size = self.app.config.REQUEST_MAX_SIZE