How to stop BaseHTTPServer.serve_forever() in a BaseHTTPRequestHandler subclass?
I am running my HTTPServer
in a separate thread (using the threading module which has no way to stop threads…) and want to stop serving requests when the main thread also shuts down.