示例#1
0
 def spawn_runner(self):
     """Run the WSGI runner in a child process."""
     # TODO sooo if the process dies, it should restart, /but/ it should
     # avoid an awful restart loop.  **AND** it should log the failure
     # somewhere and the 404 should change to match.
     if self.runner is None:
         self.runner = GunicornProcessProtocol(self, self.path, reactor)
     self.runner.spawn()