def patient_shutdown(self):
    '\n        Stops the serve_forever loop.\n\n        Blocks until the loop has finished. This must be called while\n        serve_forever() is running in another thread, or it will\n        deadlock.\n        '
    self._StoppableWSGIServer__serving = False
    if (not self._StoppableWSGIServer__is_shut_down.wait(30)):
        raise RuntimeError('Failed to shutdown the live test server in 2 seconds. The server might be stuck or generating a slow response.')
Stops the serve_forever loop.

Blocks until the loop has finished. This must be called while
serve_forever() is running in another thread, or it will
deadlock.
def patient_shutdown(self):
    '\n        Stops the serve_forever loop.\n\n        Blocks until the loop has finished. This must be called while\n        serve_forever() is running in another thread, or it will\n        deadlock.\n        '
    self._StoppableWSGIServer__serving = False
    if (not self._StoppableWSGIServer__is_shut_down.wait(30)):
        raise RuntimeError('Failed to shutdown the live test server in 2 seconds. The server might be stuck or generating a slow response.')