##// END OF EJS Templates
wsgicgi: call close() on iterable to avoid resource leaks...
Konstantin Zemlyak -
r10753:a1cb8ca0 stable
parent child Browse files
Show More
@@ -69,5 +69,9 b' def launch(application):'
69 return write
69 return write
70
70
71 content = application(environ, start_response)
71 content = application(environ, start_response)
72 for chunk in content:
72 try:
73 write(chunk)
73 for chunk in content:
74 write(chunk)
75 finally:
76 if hasattr(content, 'close'):
77 content.close()
General Comments 0
You need to be logged in to leave comments. Login now