1. cherrypy
  2. CherryPy

Source

CherryPy / cherrypy / _cpwsgi.py

Diff from to

File cherrypy/_cpwsgi.py

             yield chunk
         if request:
             request.close()
+        request = None
     except (KeyboardInterrupt, SystemExit), ex:
         try:
             if request:
                 request.close()
         except:
             cherrypy.log(traceback=True)
+        request = None
         raise ex
     except:
         cherrypy.log(traceback=True)
                 request.close()
         except:
             cherrypy.log(traceback=True)
+        request = None
         s, h, b = _cputil.bareError()
         # CherryPy test suite expects bareError body to be output,
         # so don't call start_response (which, according to PEP 333,