Commits

kendall  committed 6bece9f

close iterator in AppResponse.close()

  • Participants
  • Parent commits 701f413

Comments (0)

Files changed (1)

File cherrypy/_cpwsgi.py

     
     def close(self):
         """Close and de-reference the current request and response. (Core)"""
+        try:
+            self.iter_response.close()
+        except:
+            pass
+        
         self.cpapp.release_serving()
     
     def run(self):