Source

CherryPy / _cpwsgi.py

The branch 'cherrypy' does not exist.
Diff from to

File _cpwsgi.py

                                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