This sidesteps the issue of how to fix your threading code.
SocketServer has a ThreadingMixIn class. You can create a threading
HTTPServer without coding the threading yourself.
(watch for typos - this is NOT from working code)
class ThreadingHTTPD(SocketServer.ThreadingMixIn, BaseHTTPServer.HTT
Here's some more detail about how I've got things set up. I left a
bunch of things out of my original email; sorry about that, I was
rushed for time. I don't have access to the verbatim code right now,
but here's the gist. I've subclassed threading.Thread like this:
class ServerThread(threading.Th
> I've been using BaseHTTPServer (and subclassing BaseHTTPRequestHandler,
> of course) for a project at work. However, I can't seem to close my
> connections completely once I'm done with the server. I've tried:
>
> server.server_close()
> del server
>
> but when I try to use the same port again,
I've been using BaseHTTPServer (and subclassing
BaseHTTPRequestHandler, of course) for a project at work. However, I
can't seem to close my connections completely once I'm done with the
server. I've tried:
server.server_close()
del server
but when I try to use the same port again, it complains th