fix pipelining
This commit is contained in:
parent
1866e4ef44
commit
21f7a7a66f
|
@ -188,7 +188,6 @@ class HttpProtocol(asyncio.Protocol):
|
||||||
else:
|
else:
|
||||||
# Record that we received data
|
# Record that we received data
|
||||||
self._last_request_time = current_time
|
self._last_request_time = current_time
|
||||||
self.cleanup()
|
|
||||||
|
|
||||||
def write_error(self, exception):
|
def write_error(self, exception):
|
||||||
try:
|
try:
|
||||||
|
@ -219,14 +218,6 @@ class HttpProtocol(asyncio.Protocol):
|
||||||
self.write_error(exception)
|
self.write_error(exception)
|
||||||
log.error(message)
|
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):
|
def close_if_idle(self):
|
||||||
"""
|
"""
|
||||||
Close the connection if a request is not being sent or received
|
Close the connection if a request is not being sent or received
|
||||||
|
|
Loading…
Reference in New Issue
Block a user