From 21f7a7a66f6758b4a6ca12a509c3513105443eb6 Mon Sep 17 00:00:00 2001 From: Raphael Deem Date: Mon, 13 Feb 2017 19:45:50 -0800 Subject: [PATCH] fix pipelining --- sanic/server.py | 9 --------- 1 file changed, 9 deletions(-) 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