Fix slowdown
This commit is contained in:
parent
0c28cdbaf4
commit
18aa937f29
|
@ -122,8 +122,8 @@ class HttpProtocol(asyncio.Protocol):
|
||||||
|
|
||||||
def write_response(self, response):
|
def write_response(self, response):
|
||||||
try:
|
try:
|
||||||
keep_alive = all(
|
keep_alive = self.parser.should_keep_alive() \
|
||||||
[self.parser.should_keep_alive(), self.signal.stopped])
|
and not self.signal.stopped
|
||||||
self.transport.write(
|
self.transport.write(
|
||||||
response.output(
|
response.output(
|
||||||
self.request.version, keep_alive, self.request_timeout))
|
self.request.version, keep_alive, self.request_timeout))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user