Fixed #182: Close response once we're done with it

This commit is contained in:
Andrew Godwin 2016-05-31 19:04:12 +00:00
parent df0ae80bfb
commit 38641d8522

View File

@ -212,6 +212,8 @@ class AsgiHandler(base.BaseHandler):
for message in self.encode_response(response):
# TODO: file_to_stream
yield message
# Close the response now we're done with it
response.close()
def process_exception_by_middleware(self, exception, request):
"""