mirror of
https://github.com/django/daphne.git
synced 2025-07-08 05:43:11 +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):
|
for message in self.encode_response(response):
|
||||||
# TODO: file_to_stream
|
# TODO: file_to_stream
|
||||||
yield message
|
yield message
|
||||||
|
# Close the response now we're done with it
|
||||||
|
response.close()
|
||||||
|
|
||||||
def process_exception_by_middleware(self, exception, request):
|
def process_exception_by_middleware(self, exception, request):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user