Commits

Robert Brewer  committed 40100fe

Missing call to request.close() on KeyboardInterrupt, SystemExit within buffered page handler.

  • Participants
  • Parent commits 6670bb3
  • Branches cherrypy

Comments (0)

Files changed (1)

                                environ['wsgi.input'])
         s, h, b = response.status, response.header_list, response.body
         exc = None
-    except (KeyboardInterrupt, SystemExit):
-        raise
+    except (KeyboardInterrupt, SystemExit), ex:
+        try:
+            if request:
+                request.close()
+        except:
+            cherrypy.log(traceback=True)
+        request = None
+        raise ex
     except:
         if cherrypy.config.get("throw_errors", False):
             raise