Commit 439226fa authored by Denis Bilenko's avatar Denis Bilenko

Fixed issue #82: connection would hang if generator failed

parent 61224544
......@@ -437,8 +437,10 @@ class WSGIHandler(object):
try:
self.run_application()
except GreenletExit:
self.close_connection = True
raise
except Exception:
self.close_connection = True
self.handle_error(*sys.exc_info())
finally:
if hasattr(self.result, 'close'):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment