mirror of
https://github.com/django/daphne.git
synced 2025-04-20 08:42:18 +03:00
Fixed #182: Close response once we're done with it
This commit is contained in:
parent
df0ae80bfb
commit
38641d8522
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user