I have an instance of SimpleHTTPServer, however when I try to call
"shutdown" on it and there is a request handler that is blocked – the
whole process will block.
It does so even if I run the "serve_forever" method in a deamon
thread.
See example code at http://codepad.org/cn8EYdfg
the
shutdownmethod won’t take affect until after theGETrequest is processed.And that request is blocking because of the queue operation.
Maybe this will help: Stoppable Interruptable Python HTTP Server