fix pipelining

This commit is contained in:
Raphael Deem 2017-02-13 19:45:50 -08:00
parent 1866e4ef44
commit 21f7a7a66f

View File

@ -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