Commits

Robert Brewer committed a5caf57

Added the required WSGI request.close() call (thanks amix!).

  • Participants
  • Parent commits d436364
  • Branches cherrypy-2.x

Comments (0)

Files changed (1)

File cherrypy/_cpwsgiserver.py

                                                         request.start_response)
                             for line in response:
                                 request.write(line)
+                            if hasattr(response, "close"):
+                                response.close()
                     except socket.error, e:
                         errno = e.args[0]
                         if errno not in socket_errors_to_ignore: