diff --git a/sanic/server.py b/sanic/server.py index 8a7969e2..20319007 100644 --- a/sanic/server.py +++ b/sanic/server.py @@ -188,7 +188,6 @@ class HttpProtocol(asyncio.Protocol): else: # Record that we received data self._last_request_time = current_time - self.cleanup() def write_error(self, exception): try: @@ -219,14 +218,6 @@ class HttpProtocol(asyncio.Protocol): self.write_error(exception) log.error(message) - def cleanup(self): - self.parser = None - self.request = None - self.url = None - self.headers = None - self._request_handler_task = None - self._total_request_size = 0 - def close_if_idle(self): """ Close the connection if a request is not being sent or received